• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Replacing the Session Timeout message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing the Session Timeout message


  • Subject: Re: Replacing the Session Timeout message
  • From: Kieran Kelleher <email@hidden>
  • Date: Mon, 19 Oct 2009 14:08:36 -0400

FYI, don't forget to handle Ajax requests against a session that has timed out .... if you don't you get a whole "YourSessionTimedOut" page inside an AjaxUpdateContainer....... this is unaltered copy/paste form my generic ERXApplication subclass:


@Override
public WOResponse handleSessionRestorationErrorInContext(WOContext context) {
String page = ERXProperties.stringForKey("app.sessionTimeoutPageName");
if (page == null) {
return super.handlePageRestorationErrorInContext(context);
} else {
if (AjaxUtils.isAjaxRequest(context.request())) {
WOResponse response = createResponseInContext(context);
String defaultUrl = ERXWOContext.directActionUrl(context, WKWODirectAction.class.getSimpleName() + "/sessionExpired", null,
false);
response.appendContentString("<script>document.location.href='" + defaultUrl + "';</script>");
return response;
} else {
return pageWithName(page, context).generateResponse();
}
}
}








On Oct 19, 2009, at 12:59 PM, Joe Little wrote:

Wow. Nice concise article. Never saw that before, and its definitely a
handy reference for the usual issues one faces.

On Sat, Oct 17, 2009 at 4:20 PM, Andrew Lindesay <email@hidden> wrote:
Hi Don;

You can override;

       WOApplication.handleSessionRestorationErrorInContext(..)

This returns a WOResponse. You can nominate a component there, generate its
response and return it.


A long time ago, I did a brief article for this on STEPWISE;


http://homepage.mac.com/andrewlindesay/le/articles/wo_errorreporting_article.pdf

Regards;

I have looked through all the documentation I can find, but I cannot find
information on replacing the generic Web Objects Session Timeout message. I
checked in WOnder as well, hoping there was some information there.
What framework do these items live in? Is there a way to override the
timeout component that gets displayed?

___ Andrew Lindesay www.lindesay.co.nz

_______________________________________________
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

_______________________________________________
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

_______________________________________________ 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
References: 
 >Replacing the Session Timeout message (From: Don Lindsay <email@hidden>)
 >Re: Replacing the Session Timeout message (From: Andrew Lindesay <email@hidden>)
 >Re: Replacing the Session Timeout message (From: Joe Little <email@hidden>)

  • Prev by Date: Re: Replacing the Session Timeout message
  • Next by Date: Eclipse 3.5 – Cocoa / Carbon or Neither?
  • Previous by thread: Re: Replacing the Session Timeout message
  • Next by thread: mixed deployment of 4.5.1 + 5.x
  • Index(es):
    • Date
    • Thread