Remove extraneous cookie, pass -domain user/jeff/shared_ses_cookie
authorJeff Godin <jgodin@tadl.org>
Fri, 12 Oct 2012 14:53:33 +0000 (10:53 -0400)
committerJeff Godin <jgodin@tadl.org>
Fri, 12 Oct 2012 14:53:33 +0000 (10:53 -0400)
Remember to pass -domain for the cookie we care about, and delete
the cookie we do not care about.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm

index 54168ea..f3d1c0e 100644 (file)
@@ -480,12 +480,6 @@ sub load_logout {
                 -expires => '-1h'
             ),
             $self->cgi->cookie(
-                -name => COOKIE_SHARED_SES,
-                -path => '/',
-                -value => '',
-                -expires => '-1h'
-            ),
-            $self->cgi->cookie(
                 -name => COOKIE_LOGGEDIN,
                 -path => '/',
                 -value => '',
@@ -502,6 +496,7 @@ sub load_logout {
             $self->cgi->cookie(
                 -name => COOKIE_SHARED_SES,
                 -path => '/',
+                -domain => $shared_ses_domain,
                 -value => '',
                 -expires => '-1h'
             );