How can I tell the difference between a timed out session and a new session?

Each of my JSP pages tests a scope=session object to determine if the user
is logged on. If the user is not logged on, I redirect to the login page.
I want to present users who have timed out with the msg
"Your session has expired. You must login again.". However, I don't
want to present this message for users who have not logged in at all yet.

Anyone know how to do this?

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to