This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes going to earlier page after relogin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "going to earlier page after relogin" Watch "going to earlier page after relogin" New topic

going to earlier page after relogin

aresh babu
Ranch Hand

Joined: Aug 31, 2008
Posts: 65

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

Charbel Keyrouz
Ranch Hand

Joined: Jun 10, 2005
Posts: 46
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

Joined: Jan 10, 2002
Posts: 63208

This (recording the cookie) would be easy to accomplish with a filter.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: going to earlier page after relogin
It's not a secret anymore!