diff options
author | kiko%async.com.br <> | 2004-07-29 11:45:37 +0200 |
---|---|---|
committer | kiko%async.com.br <> | 2004-07-29 11:45:37 +0200 |
commit | 39633788a33cbe86b5ebc292fb18652fdc702e46 (patch) | |
tree | 7fda181b8cc91c3dc7cab8994696467de5a31204 /Bugzilla.pm | |
parent | 1176bd8d61a55297707bf28810a9fcea06e82ec5 (diff) | |
download | bugzilla-39633788a33cbe86b5ebc292fb18652fdc702e46.tar.gz bugzilla-39633788a33cbe86b5ebc292fb18652fdc702e46.tar.xz |
Fix for bug 236678: Clean up access to COOKIE global. Murder the last
remaining places in the tree where COOKIE is used; includes a rather
thorough cleanup of Bugzilla::Bug->user and a minor doc update. r=joel, a=justdave.
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 0818fb1d5..56a8d615c 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -87,13 +87,10 @@ sub logout_user_by_id { # hack that invalidates credentials for a single request sub logout_request { undef $_user; + # XXX clean this up eventually $::userid = 0; - # XXX clean these up eventually - delete $::COOKIE{"Bugzilla_login"}; - # NB - Can't delete from $cgi->cookie, so the logincookie data will - # remain there; it's only used in Bugzilla::Auth::CGI->logout anyway - # People shouldn't rely on the cookie param for the username - # - use Bugzilla->user instead! + # We can't delete from $cgi->cookie, so logincookie data will remain + # there. Don't rely on it: use Bugzilla->user->login instead! } my $_dbh; |