Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the annoying login error that happens in some cases when REGIST…

…RATION_COOKIE_DOMAIN isn't set. Now, generally you don't have to sete REGISTRATION_COOKIE_DOMAIN unless you want to use multi-domain cookies (such as '.foo.com')

git-svn-id: http://code.djangoproject.com/svn/django/trunk@216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 307f3a95c7c0466f8b821395b611d3253ae4c79c 1 parent 5874952
Adrian Holovaty authored July 19, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/models/auth.py
2  django/models/auth.py
@@ -232,7 +232,7 @@ def _module_start_web_session(user_id, request, response):
232 232
         user.save()
233 233
         session = create_session(user_id)
234 234
         key, value = session.get_cookie()
235  
-        cookie_domain = REGISTRATION_COOKIE_DOMAIN or request.META['SERVER_NAME']
  235
+        cookie_domain = REGISTRATION_COOKIE_DOMAIN or None
236 236
         response.set_cookie(key, value, domain=cookie_domain)
237 237
 
238 238
 class Message(meta.Model):

0 notes on commit 307f3a9

Please sign in to comment.
Something went wrong with that request. Please try again.