I would like to read the cookies at the very beginning of a user's session,
in order (for example) to customize the presentation according to his
preferences from his previous sessions.

I imagine that overriding the sessionCreated() method of an
HttpSessionListener would be ideal for my purpose.  The problem is that the
sessionCreated() method provides only an HttpSessionEvent (corresponding to
the creation of the session).  What I need is to access an HttpRequest in
order to getCookies().  Surely if the session was created, some HttpRequest
must have been issued in the first place, but how do I get hold of this
request?

Maybe my problem is that I am not looking at the appropriate Listener.  But
I would rather not listen to every single request when I only need to read
cookies once at the beginning of a session!

Suggestions?

Reply via email to