On Sat, May 16, 2009 at 03:02:02PM +0200, Tomasz Narloch wrote:
> I have a problem with cookies on pylons.
> 
> I go to ex. http://mydomain.com where I create my cookie.
> When I go to http://www.mydomain.com  my cookie is not visible.
> 
> I know that is option for cookie on subdomains but this is not the same.
> 
> What should I change?

Make one of the two domains redirect to the other (e.g. via an Apache
rewrite rule).  There are many reasons to have only one canonical URL
referring to a particular resource:

  * cookies, as you've seen
  * search engines (links to your site won't be split into what looks
    from the outside as multiple sites)

Um.  Does two count as many?

Marius Gedminas
-- 
Real programmers don't write in BASIC.  Actually, no programmers write in
BASIC after reaching puberty.

Attachment: signature.asc
Description: Digital signature

Reply via email to