Re: mod_rewrite, sessions and cookies
Re: mod_rewrite, sessions and cookies
- Subject: Re: mod_rewrite, sessions and cookies
- From: Zak Burke <email@hidden>
- Date: Sun, 06 Nov 2005 18:42:22 -0500
Jaime Magiera wrote on 11/6/05 12:18 PM:
I implemented mod_rewrite in
Apache to shorten the URLs of the direct actions. I'm now coming to the
conclusion that this is going to cause some problems. The default cookie
is for /cgi-bin/...., and loading a page with the shortened URLs does
not add a cookie at all.
In Session.java, you need to override domainForIDCookies like this:
public String domainForIDCookies()
{
return "/";
}
I dunno why it's named domainForIDCookies -- it sets the *path* for
WO's wosid and woinst cookies. Use / to have the cookies sent
with all requests, which is required for mod_rewrite and
DirectAction-based applications that have WO-based pages whose
URLs DO NOT START with the WO adaptorPrefix, e.g. /wo/WebObjects/
or /cgi-bin/WebObjects/, which is what WO uses as the cookie path
by default.
zak.
_______________________________________________
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