atics
>-Original Message-
>From: Dale, Matt [mailto:[EMAIL PROTECTED]
>Sent: Saturday, July 31, 2004 6:07 AM
>To: Tomcat Users List
>Subject: RE: session time out
>
>
>If this is possible then i'd like to know but as far as I know you have
to
>code around session time ou
If this is possible then i'd like to know but as far as I know you have to code around
session time outs and redirect yourself.
Ta
Matt
-Original Message-
From: Asim Ghosh [mailto:[EMAIL PROTECTED]
Sent: 31 July 2004 08:12
To: [EMAIL PROTECTED]
Subject: session time out
hello everybod
but I would have to play around
> with that a bit to see how it works!
Well, some of the session stuff should help -- but depending on
exactly what they want to do, they may need to roll their own, at
least for some of it.
> -Original Message-
> From: Milt Epstein [mailto:mepstein@
Yes. Using the HttpSession object, or I believe in the new J2ee API
there is a HttpSessionListener object, you can test if the session is
valid. If it is not then redirect to wherever you want. Probably the
simplest way is to test via if(request.getSession() == null) then go
somewhere else
On
Lior,
One easy way to do this is to store something in the session when you log
the user on (a user name or some unique piece of information) - you probably
already do this - and when you do any jsps or servlets, try doing
session.getAttribute on that item - if its null - the session is timed out.
hi there is no built in function to get the session has timed out or not.
Follow the steps.
1. Setting the max interval the session should be valid
...session.setMaxInactiveInterval(3600)
this 3600 = 72 * 1000 milli seconds.
2. fine now u have set the session should exist for 2 hrs