Apache, Java, & Session Cookies
- From: Steve <nospam@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 02:43:52 -0400
Hi;
My company is using an Apache web server with a directory that contains picture files. This directory is protected by an .htaccess file such that anything trying to access the pictures will be blocked unless a login/password prompt is filled out.
From reading and experimentation I learned that the cookies Apache makes after a user logs in are not stored on a hard disk. They are something called session cookies which are stored in memory.
I have a JSP application that I would like to be able to view those pictures without having to make the user authenticate.
I was hoping to use the JSP API to write a cookie that Apache would read, and interpret as the user being logged in ( we can make a special account for the jsp app ).
My questions are:
1. Will this work?
2. Will information put into a JSP HTTPSession be read by Apache
3. What do I need to write / put into the JSP HTTPSession to authenticate with Apache.
Any thoughts will be highly appreciated.
Thanks.
Steve
Be A Healthy Vegan Or Vegetarian http://www.geocities.com/beforewisdom/Veg/healthyVeg.html
Steve's Home Page http://www.geocities.com/beforewisdom/
"The great American thought trap: It is not real unless it can be seen on television or bought in a shopping mall"
.
- Follow-Ups:
- Re: Apache, Java, & Session Cookies
- From: martingerxt
- Re: Apache, Java, & Session Cookies
- Prev by Date: Re: socket connection not being reset correctly
- Next by Date: Re: socket connection not being reset correctly
- Previous by thread: how to set time to allow servlet finish process before forward
- Next by thread: Re: Apache, Java, & Session Cookies
- Index(es):
Relevant Pages
|
|