"False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
"False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
- Subject: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
- From: Kaj Hejer <email@hidden>
- Date: Wed, 30 Mar 2005 21:05:06 +0200
Hi!
We have our own handleSessionRestorationErrorInContext in
Application.java which just show our own timeout page. This works just
fine most of the time :)
But... We have blogg-application. On the page that show an entry in the
blogg we get a problem if an entry contains a relative reference to an
image like
<img src="myimage.gif">
The page show ok. But... if we try to click a link on the page we se
that our handleSessionRestorationErrorInContext is called.
Why is handleSessionRestorationErrorInContext called here? When writing
context.request() to the log in handleSessionRestorationErrorInContext
I see that the request is for the following url:
"/cgi-bin/WebObjects/nettlogg.woa/wo/myimage.gif"
We store session id as a cookie but I guess here "myimage.gif" is
looked at as the session id and ofcource no session with this id can be
found.
Any ideas on how to work around this problem?
Our handlePageRestorationErrorInContext looks something like the
following:
public WOResponse handlePageRestorationErrorInContext(WOContext
context) {
System.out.println("UIOApplication:
handlePageRestorationErrorInContext: starter");
UIOBacktrackPage backtrackSide = (UIOBacktrackPage)
pageWithName("UIOBacktrackPage", context);
return backtrackSide.generateResponse();
}
We are using WO5.2.2 on solaris/windows/osx.
-Kaj :)
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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