RE: Session Time out - Tomcat

2002-10-21 Thread Milt Epstein
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@

Re: Session Time out - Tomcat

2002-10-21 Thread Dave Patton
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

RE: Session Time out - Tomcat

2002-10-21 Thread SMcGarrity
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.