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.

I am sure there are other ways to do this but this is definitely an easy way
to do it!

e.g 
<%
if(session.getAttribute("whatever")==null)
{
%>
        <jsp:forward page="some logout page.jsp"/>
<%}%>

-----Original Message-----
From: Lior Shliechkorn [mailto:liorshliech@;yahoo.com]
Sent: Monday, October 21, 2002 1:40 PM
To: Tomcat
Subject: Session Time out - Tomcat



When Tomcat times a session out, as instructed in the web.xml, is there a
way to capture that so a page can be displayed that the session has timed
out, or even prompt the user if he would like to continue being logged on?

Thanks,

Lior



---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

Reply via email to