What am I looking for in order to get the username/password out of this?  I'm using 
BASIC authentication.  Are these credentials dumped somewhere that I could find them?  
I haven't been able to find that data in HttpSession?

Justin

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:39 PM
To: Tomcat Users List
Subject: RE: Listening to Session Creation... Need Access to Session



Howdy,

>1)  Implement SessionListener, put in web.xml file in listener tags.
>       This never seems to run.
>2)  Implement HttpSessionListener, put in web.xml file in listener
tags.
>       This runs, but doesn't seem to have access to the Session (I
need the
>username and pass off the Session to authenticate to a database).
>3)  Implement a Valve to do the same.

I'm not going to waste time on approaches 1 and 3, as they're
tomcat-specific.  #2 will work: you will get the event, with access to
the session, once the session is created.  It has no attributes at that
time, so any getAttribute call will return null.

Perhaps you are really looking for a session attribute listener?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to