session.setAttribute(). Don't forget to remove the attribute from the session when you're done, Actually, you should use a request attribute in this case.
- Vincent
Shain, Jim wrote:
Vincent, Thanks! Great solution. How can I set a session variable in a custom realm?
-----Original Message----- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:24 AM To: Tomcat Users List Subject: Re: Realm Authentication and Password Change
A possible solution: - Your custom realm sets a session attribute to indicate that the password must be changed. - You create a filter that checks this attribute and redirect the use to the password change page if needed.
-Vincent.
--------------------------------------------------------------------- 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]
