Re: Internet Explorer and Sessions
Re: Internet Explorer and Sessions
- Subject: Re: Internet Explorer and Sessions
- From: Marek Wawrzyczny <email@hidden>
- Date: Tue, 21 Oct 2003 09:14:58 +1000
Hi Chris,
This may help in eliminating the problem. This fixed a problem where my
direct action pages would not be refreshed by IE when back button was
used.
There's a bug in WO (at least in 5.1.x) where WO does not properly mark
pages as expired, just override the appendToResponse in your component
to modify the Expires header:
/**
* <p>Overrides the implementation of appendToResponse to fix
client browser
* cache expiry bug.</p>
*
* <p>The expiry header for pages will now be set to "Thu, 01 Jan
1990 12:00:00 GMT".</p>
*
* @param response - the generated response
* @param keyPath - the request/response context
*/
public void appendToResponse(WOResponse aResponse, WOContext
aContext) {
super.appendToResponse(aResponse, aContext);
// Fix to force browser caching off
aResponse.disableClientCaching();
aResponse.setHeader("Thu, 01 Jan 1990 12:00:00 GMT", "Expires");
}
I usually use a set of controller classes in my apps so that I don't
have to do this in every component.
Hope that helps.
On Tuesday, Oct 21, 2003, at 00:29 Australia/Sydney, Chris Sharon wrote:
I'm still very new to web objects, and I built a web app
http://www.becool.com/cgi-bin/WebObjects/ProductSearch/ .
I am having a problem when using the back button on IE. I guess it's
because ie doesn't automatically reload the previous page. Is there a
way to fix it without converting everything to direct actions? I've
tried adding the setRefreshOnBacktrackEnabled(true) to the application
constructor.
Thanks,
Chris
Marek Wawrzyczny
software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400 fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
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.