The moose likes JSP and the fly likes session lost jsp question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "session lost jsp question" Watch "session lost jsp question" New topic

session lost jsp question

Sripathi Krishnamurthy
Ranch Hand

Joined: Mar 07, 2005
Posts: 232
I have a problem. our application redirects the user to a sessionLost.jsp page when http session is timed out. There is a continue button in that sessionlost page which will take the user to a different application. But the URL for this button is not static and will be different for different users. This URL will be obtained when the user logs in to the application. I cannot store this in session since session will be lost anyway and the URL cannot be retrieved. Is there any way I can use a cookie(server side) and store the URL for each user? if yes, how to do that? If not, does anyone have better ideas for this issue?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You could use a cookie for this.
There are plenty of tutorials on the web for setting cookies.
I just found this one with Google:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link: http://aspose.com/file-tools
subject: session lost jsp question
Similar Threads
object storing in session or request
Session Invalidation and Timeout !
Tomcat session lost
connection session variable
Design Issue(Urgent)