From: joey Date: Wed, 29 Mar 2006 00:21:57 +0000 (+0000) Subject: Change the name of the session cookie. This will avoid problems with X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/b5656f595db27fd8e6b916954ebf39a569fcb96c Change the name of the session cookie. This will avoid problems with multiple wikis on the same host. --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 89047a952..fb4fd4475 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -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" });