Looking into the Authenticatorbase.java and the register method of 5.0.19, it looks like you could do

session.removeNote(Constants.SESS_USERNAME_NOTE);

session.removeNote(Constants.SESS_PASSWORD_NOTE);

You may need to do this as well:

session.setAuthType(null);

session.setPrincipal(null);



Two things.

1. Check the source code for the 5.5.2 to see if any changes have been made in the code.



2. I have not done this myself. Just makes sense that if you reverse what the register method does......



Doug

----- Original Message ----- From: "Chirag" <[EMAIL PROTECTED]>
To: <tomcat-user@jakarta.apache.org>
Sent: Saturday, January 08, 2005 12:57 AM
Subject: Chirag: Logout from the JDBCRealm Authentication



Software
------------
JDK1.5
jakarta-tomcat-5.5.2

Requirement
-------------------
I am using JDBCRealm Authentication.
I want to provide a logout facility and I could do that with session.invalidate() function but is there any other way by which without destroying the session we can logout from the JDBCRealm


Thanks in advance

CSJakharia


Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com




---------------------------------
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!



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



Reply via email to