On Thu, May 5, 2011 at 2:02 PM, fsang <[email protected]> wrote:
> Hi,
>
> I am running my Django project on a remote host (with Apache) and on
> my current machine (localhost, using "runserver"). Cookies and
> sessions work fine when the project is served via Apache from the
> remote host. But for some reasons all of my browsers reject the
> cookies from the development server (127.0.0.1).
>
> I do not have any SESSION_COOKIE_* or other COOKIE*-settings in my
> settings.py. I am accessing my local project through 127.0.0.1:8000
> (although I've also tried localhost:8000 and localhost.localdomain:
> 8000). After using wireshark I was also able to see that the cookie is
> actually being sent, but for some reason neither Firefox nor Chromium
> seem to accept it.
>
> The csrftoken-cookie works as expected (locally and with the remote
> server).
>
> Can anyone suggest a workaround?
>
>
> Regards,
> Frederik
>

If you can see the Set-Cookie header in the responses, but your
browser is not accepting them, verify that the path and domain are
correct in that response. Browsers will ignore cookies for domains
other than the domain serving the page, and for paths other than the
current path and substrings of the current path (as the browser sees
it).

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to