[albatross-users] cookie error in sessionfile.py

Andrew McNamara andrewm at object-craft.com.au
Wed Jun 4 10:51:21 EST 2003


>    def _get_sesid_from_cookie(self):
>        hdr = self.request.get_header('Cookie')
>        if hdr:
>            c = Cookie.SimpleCookie(hdr)
>            try:
>                return os.path.basename(c[self.app.ses_appid()].value)
>            except OSError:
>                pass
>            ### KeyError fix
>            except KeyError:
>                pass
>        return None
>------------------------------------------
>
>and that seems to have solved the problem. By the way, I had two other 
>people test the app before I made the fix, and they had no problems either.

That's the right fix. Looking at the CVS history, I made this change
in session.py in March 2002, but missed the instance in sessionfile.py
until November 2002 (after the 1.01 release).

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list