Change the name of the session cookie. This will avoid problems with
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 29 Mar 2006 00:21:57 +0000 (00:21 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 29 Mar 2006 00:21:57 +0000 (00:21 +0000)
multiple wikis on the same host.

IkiWiki/CGI.pm

index 89047a9525f43957e2c7ab08425cefcc7979ea1a..fb4fd4475e9fb90d6bd9fcbf28d14492079b0379 100644 (file)
@@ -483,8 +483,8 @@ sub cgi () { #{{{
                return;
        }
        
-       CGI::Session->name("ikiwiki_session");
-
+       CGI::Session->name("ikiwiki_session_$config{wikiname}");
+       
        my $oldmask=umask(077);
        my $session = CGI::Session->new("driver:db_file", $q,
                { FileName => "$config{wikistatedir}/sessions.db" });