Restoring session after timeout.
Restoring session after timeout.
- Subject: Restoring session after timeout.
- From: Mahdi Mankai <email@hidden>
- Date: Fri, 02 Dec 2011 12:11:57 +0100
Hi,
I'd like to do something but I am not sure whether it's possible.
I have a WO application that requires users to login.
I am storing the user credentials in cookies to avoid having to login each time.
I'd like to handle the situation where a user tries to continue working on the application after his session is timed out.
Basically, whatever the request is (may be Direct Action or Component request, with or without form values), I want to get the appropriate response but with a new session (created using the credentials stored in cookies). i.e. process the same request but with a different session or (I don't know if it's possible) restore a timed out session.
I don't want to extend the session timeout parameter.
I tried to do something in handleSessionRestorationErrorInContext(WOContext aContext) in WOApplication class. But couldn't figure out how to reuse the same context with a different session. The only thing I was able to do is to redirect to a specific page.
For example, I would like users to be able to fill a form, come back tomorrow, hit save and my application should be able to handle that smoothly.
Thanks,
Mahdi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden