I need to create a new object and load it into the session attributes 
whenever a new session is created.  To make this more interesting, this 
object needs to check for information stored in a cookie sent by the 
browser (stored from a prior visit) and fetch any related information 
from a database.

I can use a HttpSessionListener to create an object and add it to the 
session whenever a new session is created, but the SessionListener (and 
the Session it gives access to) do not give access to an 
HttpServletRequest object.  So how can I check for cookies or even the 
RemoteUser?  These two required resources ARE available in the 
HttpServletRequest object, but there is no means of getting to that 
object from an HttpSessionListener, is there?

Is a servlet Filter my only option?  I'm running Tomcat 4.0.1.

In case you're wondering, I don't want to *require* users to login to 
make these saved settings available, if they choose to use cookies.  
They are only required to login to perform tasks that modify certain 
data, or read restricted information.

Many thanks in advance!

-jeremy-

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to