aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-29 00:21:57 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-29 00:21:57 +0000
commitb5656f595db27fd8e6b916954ebf39a569fcb96c (patch)
treef6e574e19f55d13a6c658efc408b35d22f142405 /IkiWiki/CGI.pm
parent9c2f67454b630018f3cff3cc5c1c1a7dcc15f54f (diff)
downloadikiwiki-b5656f595db27fd8e6b916954ebf39a569fcb96c.tar
ikiwiki-b5656f595db27fd8e6b916954ebf39a569fcb96c.tar.gz
Change the name of the session cookie. This will avoid problems with
multiple wikis on the same host.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm4
1 files changed, 2 insertions, 2 deletions
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" });