Django

Code

Changeset 216

Show
Ignore:
Timestamp:
07/19/05 14:13:33 (3 years ago)
Author:
adrian
Message:

Fixed the annoying login error that happens in some cases when REGISTRATION_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')

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/models/auth.py

    r158 r216  
    233233        session = create_session(user_id) 
    234234        key, value = session.get_cookie() 
    235         cookie_domain = REGISTRATION_COOKIE_DOMAIN or request.META['SERVER_NAME'] 
     235        cookie_domain = REGISTRATION_COOKIE_DOMAIN or None 
    236236        response.set_cookie(key, value, domain=cookie_domain) 
    237237