Hi- I'm in the Servlet->Bean->JSP model, and I have a login page that calls a login servlet, which in turn instantiates a session-bean used by the output page.  The user then continues to navigate a series of JSP pages, all of which use this same session-bean.

My question is, what is the proper way to handle the session expiring if the user lets it sit for awhile?  The currently displayed JSP page will post data back to a servlet which will reinstantiate the bean.  It then needs to recognize that the user needs to log in again and return back the login page.  But how do you sustain the post data, and how does the login JSP know which function the user was trying to do before the login page interrupted the flow of logic?
 
I'm sure I could hack out a solution, but this must be a common problem so I'm assuming there is a proper method for doing it.  Any help greatly appreciated!
 
Thanks!
 
-Richard

Reply via email to