Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session lost jsp question

 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic