OSDN Git Service

BugTrack-wiki/288 : Farmセッションタイムアウトに関する件。クッキー削除時の有効期限
authorkgsoft <kgsoft@users.osdn.me>
Thu, 7 Dec 2017 09:21:44 +0000 (09:21 +0000)
committerkgsoft <kgsoft@users.osdn.me>
Thu, 7 Dec 2017 09:21:44 +0000 (09:21 +0000)
plugin/admin/Login.pm

index 999ed2d..3755997 100644 (file)
@@ -112,7 +112,7 @@ sub logout {
        
        # Cookie¤ÎÇË´þ
        my $path   = &Util::cookie_path($wiki);
-       my $cookie = CGI::Cookie->new(-name=>'CGISESSID',-value=>'',-expires=>-1,-path=>$path);
+       my $cookie = CGI::Cookie->new(-name=>'CGISESSID',-value=>'',-expires=>1,-path=>$path);
        print "Set-Cookie: ".$cookie->as_string()."\n";
        
        $wiki->redirectURL($wiki->create_url({action=>"LOGIN"}));