This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

going to earlier page after relogin

 
aresh babu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

suppose i got a session timeout and i re login in to same account.
after re login how can i go back to the page where i was earlier ?



Thanks & Regards

Areshbabu
 
Charbel Keyrouz
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try saving the current page in the cookies.
Whenever you go to a page in your website set a property in the cookies named currentpage and that has the value of the current loaded url.

After the timeout the value of the currentpage cookie will be the last visited url.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64969
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This (recording the cookie) would be easy to accomplish with a filter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic