Hi there,

my client made a somewhat weird request: wants me to store “the last context 
the user worked in” in his session, and restore it when the user comes to the 
application through a specific Direct Action (and the session still lives).

In other words, suppose the user works in the app for awhile, and then closes 
his browser, remembering just the session ID, nothing else.

Next thing he does, he opens 
.../OurApp.woa/wa/restorePrevious?wosid=prevSessionID — and wow, he finds the 
browser window in precisely the same state it was when he closed the browser 
some time ago. (Far as possible of course, let's assume for simplicity the 
internal app/session/DB state did not change meantime.)

I guess most probably I need to save context().clone() into session each time 
in Session.sleep(), that's not difficult. But then in my 
DirectAction.restorePreviousAction I need to resurrect the saved context 
somehow, but I can't find a way to do that. Does anybody know how to?

Thanks!
OC
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to