struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: how to tell invalid session vs session timed out
Date Sat, 27 Sep 2003 11:13:57 GMT
Hi,
do you mean you are getting IllegalStateExceptions because you are 
trying to access an invalid session?

Have you tried session.isNew() ?


Adam

On 09/26/2003 01:06 AM Warren Chen wrote:
> Hi All,
> 
> Is there any tool in Struts that can tell if an
> invalid session is caused by timeout or simply no
> session were ever created?
> 
> (In my app, the loginAction creates a session and put
> some stuff into the session, in each subsequent
> request I'll check if session is valid, if not, send
> user back to login page - in order to send more
> meaningful message to user, I want to tell if invalid
> session is caused by timeout out or simply the user
> never logged in) 
> 
> Thanks a lot!
> 
> Warren
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
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