Changeset 140

Show
Ignore:
Timestamp:
11/08/07 12:01:17
Author:
thejimmyg
Message:

Fixed a bug where the new cookie implementation tries to clear the session when nouserincookie is not specified.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AuthKit/trunk/authkit/authenticate/cookie.py

    r134 r140  
    439439         
    440440    def logout_user_cookie(self, environ): 
    441         environ[self.session_middleware]['authkit.cookie.user'] = None 
    442         del environ[self.session_middleware]['authkit.cookie.user'] 
    443         environ[self.session_middleware].save() 
     441        if self.nouserincookie: 
     442            environ[self.session_middleware]['authkit.cookie.user'] = None 
     443            del environ[self.session_middleware]['authkit.cookie.user'] 
     444            environ[self.session_middleware].save() 
    444445        domain = self.cookie_params.get('domain') 
    445446        path = '/'