File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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
subject: session lost jsp question
It's not a secret anymore!