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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]