This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: session lost jsp question