• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mod_rewrite, sessions and cookies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: mod_rewrite, sessions and cookies
      • From: Jaime Magiera <email@hidden>
References: 
 >mod_rewrite, sessions and cookies (From: Jaime Magiera <email@hidden>)

  • Prev by Date: mod_rewrite, sessions and cookies
  • Next by Date: Re: mod_rewrite, sessions and cookies
  • Previous by thread: mod_rewrite, sessions and cookies
  • Next by thread: Re: mod_rewrite, sessions and cookies
  • Index(es):
    • Date
    • Thread