From b5656f595db27fd8e6b916954ebf39a569fcb96c Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 29 Mar 2006 00:21:57 +0000 Subject: [PATCH] Change the name of the session cookie. This will avoid problems with multiple wikis on the same host. --- IkiWiki/CGI.pm | 4 ++-- 1 file 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" }); -- 2.26.2