aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "session lost jsp question" Watch "session lost jsp question" New topic
Author

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
Sheriff

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:
http://www.roseindia.net/jsp/jspcookies.shtml


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: session lost jsp question
 
Similar Threads
Tomcat session lost
Design Issue(Urgent)
Session Invalidation and Timeout !
object storing in session or request
connection session variable