summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2aa8d79)
raw | patch | inline | side by side (parent: 2aa8d79)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 3 Sep 2002 03:23:56 +0000 (03:23 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 3 Sep 2002 03:23:56 +0000 (03:23 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1035 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index f50b06da105fae60ba950277c17fbc9d8e54dfee..9c786f99376c60c31ab7bb438c4ea9d493024829 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.7 2002-09-03 02:58:11 richard Exp $
+# $Id: client.py,v 1.8 2002-09-03 03:23:56 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
cookie = Cookie.Cookie(self.env.get('HTTP_COOKIE', ''))
user = 'anonymous'
- if (cookie.has_key('roundup_user') and
- cookie['roundup_user'].value != 'deleted'):
+ # bump the "revision" of the cookie since the format changed
+ if (cookie.has_key('roundup_user_2') and
+ cookie['roundup_user_2'].value != 'deleted'):
# get the session key from the cookie
- self.session = cookie['roundup_user'].value
+ self.session = cookie['roundup_user_2'].value
# get the user from the session
try:
# update the lifetime datestamp
# generate the cookie path - make sure it has a trailing '/'
path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'],
''))
- self.header({'Set-Cookie': 'roundup_user=%s; expires=%s; Path=%s;'%(
+ self.header({'Set-Cookie': 'roundup_user_2=%s; expires=%s; Path=%s;'%(
self.session, expire, path)})
def make_user_anonymous(self):
path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'],
''))
self.header({'Set-Cookie':
- 'roundup_user=deleted; Max-Age=0; expires=%s; Path=%s;'%(now,
+ 'roundup_user_2=deleted; Max-Age=0; expires=%s; Path=%s;'%(now,
path)})
self.login()
path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'],
''))
self.header(headers={'Set-Cookie':
- 'roundup_user=deleted; Max-Age=0; expires=%s; Path=%s;'%(now, path)})
+ 'roundup_user_2=deleted; Max-Age=0; expires=%s; Path=%s;'%(now, path)})
# Let the user know what's going on
self.ok_message.append(_('You are logged out'))