Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-04 Thread Jeremy Thomerson
Yea, but if it's in the DB, then you also need a cookie for auto-login, because if they aren't logged in, how will you tie them to the row in the DB? And if their session is expired, they won't be logged in. -- Jeremy Thomerson http://www.wickettraining.com On Tue, May 4, 2010 at 3:01 AM, Zilv

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-04 Thread Zilvinas Vilutis
I've added an ajax timer so session timeout never happens on an open browser. Or you can always store your user state in the DB if you want, e.g. the URL visited. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Mon, May 3, 2010 at 4:59 PM, Tony Wu wrote: > I have a

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Igor Vaynberg
if not in url or cookies your only other space is session, and since that has timed out... -igor On Mon, May 3, 2010 at 5:43 PM, Tony Wu wrote: > Seems messy to have to carry that to every single URL. I was thinking about > redirecting to a Proxy page and having the logic there to redirect > els

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Tony Wu
Seems messy to have to carry that to every single URL. I was thinking about redirecting to a Proxy page and having the logic there to redirect elsewhere. The thing is I don't know what page I'm from once I'm at the proxy. I suppose I can store the last visited page in a cookie, but I'd like to avoi

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Igor Vaynberg
you can append the class name of the last visited page to every url by creating your own url coding strategy -igor On Mon, May 3, 2010 at 4:59 PM, Tony Wu wrote: > I have an application where on session timeout, I want to redirect to > different pages based on what their last visited page was. C

Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Tony Wu
I have an application where on session timeout, I want to redirect to different pages based on what their last visited page was. Currently my app only redirects to the same page all the time through getApplicationSettings().setPageExpiredErrorPage(LoginPage.class). Is there any way to capture the p