[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-bugs
Subject:    [Bricolage-Bugs] [Bug 303] New: Logout messes with Bricolage sessions
From:       bugzilla-daemon () thepirtgroup ! com
Date:       2003-01-31 10:22:43
[Download RAW message or body]

           Summary: Logout messes with Bricolage sessions
           Product: Bricolage
           Version: 1.5.0 - Dev for 1.6.0
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: API
        AssignedTo: david@wheeler.net
        ReportedBy: joaop@co.sapo.pt


Bricolage cookie gets set to 'Expired' on logout,

which results in an invalid Apache::Session Cookie, giving the following error:

[Fri Jan 31 15:17:41 2003] [error] [client 172.28.230.37] Error executing
AccessHandler: Bric::App::Session -- 236
Difficulties tie'ing the session hash to file.

Invalid Session Data at
/usr/local/share/perl/5.6.1/Apache/Session/Generate/MD5.pm line 40

This patch sets the cookie to undef if it only contains the string
'Expired', as set on logout.


===================================================================
RCS file: /cvsroot/bricolage/bricolage/lib/Bric/App/Session.pm,v
retrieving revision 1.17
diff -w -u -r1.17 Session.pm
--- lib/Bric/App/Session.pm     6 Dec 2002 07:43:55 -0000       1.17
+++ lib/Bric/App/Session.pm     31 Jan 2003 15:25:53 -0000
@@ -218,7 +218,8 @@

     # Try to tie the session variable to a session file.
     eval { tie %HTML::Mason::Commands::session,
-             'Apache::Session::File', ($cookie ? $cookie->value : undef), OPTS; };
+             'Apache::Session::File', ($cookie ? $cookie->value ne 'Expired'
+                                                 ? $cookie->value : undef :
undef), OPTS; };

     # Test to see if the tie succeeded.
     if ($@) {

http://bugzilla.bricolage.cc/show_bug.cgi?id=303


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Bricolage-Bugs mailing list
Bricolage-Bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic