]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 120817 - Log Out and %commandmenu% in bannerhtml, r=justdave,dkl
authordkl%redhat.com <>
Sat, 19 Jan 2002 04:04:32 +0000 (04:04 +0000)
committerdkl%redhat.com <>
Sat, 19 Jan 2002 04:04:32 +0000 (04:04 +0000)
relogin.cgi

index cafb5b93a0c497ff2aaf9ac7da10e21751aa5fd6..44fae4cc120ab612aa6ff7c8cbbe609e548de43d 100755 (executable)
@@ -33,6 +33,11 @@ Set-Cookie: Bugzilla_logincookie= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:
 Content-type: text/html
 
 ";
+
+# delete the cookie before dumping the header so that it shows the user
+# as logged out if %commandmenu% is in the header
+delete $::COOKIE{"Bugzilla_login"};
+
 PutHeader ("Relogin");
 
 print "<B>Your login has been forgotten</B>.</P>
@@ -41,8 +46,6 @@ do an action that requires a login, you will be prompted for it.
 <p>
 ";
 
-delete $::COOKIE{"Bugzilla_login"};
-
 PutFooter();
 
 exit;