Re: Session Timeout Page
Re: Session Timeout Page
- Subject: Re: Session Timeout Page
- From: Chuck Hill <email@hidden>
- Date: Thu, 07 Aug 2003 11:04:16 -0700
Yes, I've run into this before too and also forget the details. I *think*
this only happens when the session ID is stored in cookies. In this case
WO silently creates a new session and then, using the contextID from the
URL, attempts to restore the page in the newly created session. That is
when handlePageRestorationErrorInContext is called when what really
happened as a session restoration error.
I recall some code to try to and detect this, but I can't place my hands on
it. I think it just compared the wosid cookie value from the request with
the current session ID in handlePageRestorationErrorInContext. If there
were not the same it would then return the result of
handleSessionRestorationErrorInContext. Otherwise it would treat it as a
real page restoration error (backtracking or URL hacking).
Chuck
At 11:18 AM 07/08/2003 -0500, Jonathan Rochkind wrote:
>WOApplication.handleSessionRestorationErrorInContext(WOContext c)
>
>is what you're looking for.
>
>Although I've noticed some bugs regarding when this method is called, and
>when handlePageRestorationErrorInContext is called. It has seemed in the
>past that sometimes one of these is called when the other should be called
>instead. I forget which direction the problem went, and exactly the nature
>of it---I never really fully investigated it, it may be gone in the most
>recent versions. But be careful and make sure it's working the way it's
>supposed to, test it. But handleSessionRestorationErrorInContext is
>supposed to do what you want.
>
>--Jonathan
>
>At 11:48 AM 8/7/2003 -0400, Goodbye Bill wrote:
>>The page that is displayed by default when a session times out is horrible!
>>Is there any way to display a customized page OR, better still, to bounce
>>the user automatically back into a starting point?
>>
>>Thanx,
>>"Bill"
>>_______________________________________________
>>webobjects-dev mailing list | email@hidden
>>Help/Unsubscribe/Archives:
>>http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>>Do not post admin requests to the list. They will be ignored.
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.