Re: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
Re: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
- Subject: Re: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
- From: Kaj Hejer <email@hidden>
- Date: Wed, 30 Mar 2005 22:11:48 +0200
Thank you for asnwering!!
On 30. mar 2005, at 21.46, Chuck Hill wrote:
Why is handleSessionRestorationErrorInContext called here?
What I _think_ is happening:
Sounds resonable (as you always do ;-)
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"
I'd try to trap things like that before they get to the session
handling code. One place is in rewrite rules if using Apache.
Another
Application.dispatchRequest before calling super. Just return a 404
response.
Application.dispatchRequest sounds like a good place.
But how should I know when to return a 404 response? I could look for
"nettlogg.woa/wo/*.gif" in the request url and then I know I should
return status 404. Does that sound like a resonable way of knowing when
to return status 404?
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
I have one! ;-)
-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