struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Cooper <...@maxcooper.com>
Subject RE: Association between Session object and Cookies/URL rewriting
Date Thu, 06 Mar 2003 18:48:01 GMT
I am not sure what the goal is for your application. You only want to
call session.invalidate() if you want the server to forget about the
user (force a logout). What is it that you wish to achieve?

-Max

On Thu, 2003-03-06 at 05:50, Mohan Radhakrishnan wrote:
> 
>      So I will have to use
> 
>    	inValidateSession( request );
> 
>      What will happen to code like this in by base action if I do this? That
> would be lost.
> 
> 	protected void setLocale(
>             HttpServletRequest request,
>             Locale locale) {
> 
>         HttpSession session = request.getSession(true);
>         session.setAttribute( Action.LOCALE_KEY,locale );
> 
>     }
> 
> Mohan
> 
> -----Original Message-----
> From: Max Cooper [mailto:max@maxcooper.com]
> Sent: Thursday, March 06, 2003 6:18 PM
> To: Struts Users Mailing List
> Subject: Re: Association between Session object and Cookies/URL
> rewriting
> 
> 
> >Some login pages and servers may drop your old session when you
> >authenticate, but I know that Tomcat doesn't do that unless you explicitly
> >have a session.invalidate() call in your login page.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message