Hi all,
Scenario is this.
I've got a login page 'index.html' to enter the user name and
password. This form is submitted to a 'login.jsp' for user
authentication. After user authentication is successful i put a User
object containing details of the user in Vector object of scope
Application which tracks the users. The result is a page with links to
various modules in my application.
The problem is this:
when an inactive timeout occurs (i've put it as 600) and the user
clicks any of the links the login page is shown because of the
session.getValue function. Say he clicked 'Create Employee ' link ,
the login screen appeared. He loggs in again successfully but then i
want to show him the 'Create Employee' module he had tried to view
when he clicked the link, rather than going to the page with links as
before. Is this possible?
N.B
When a timeout occurs the session is invalidated fine, but the user
object is not removed from the application scope object. The user
object is removed from it only when he logs out.
Merrill
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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