[pmwiki-users] Session conflicts - how to handle this

Rogutės Sparnuotos rogutes at googlemail.com
Mon Feb 6 09:28:59 CST 2012


Jan Erik Moström (2012-02-06 15:57):
> Hi all,
> 
> I've got a question for how to handle a session info conflict. I use
> PmWiki for courses I teach, I usually just put up a quick
> wiki-installation and author my course pages. These pages are run with
> the web server as the owner of the session.
> 
> On the same server I also have my private wiki which is run as me as
> the owner of the session.
> 
> The problem is that if I log in to a course site, do some editing and
> then go my own site I get a session  error:
> 
> 
> Warning: session_write_close() [function.session-write-close]:
> open(/var/tmp//sess_527c5ae290cedf702739519de9cb5bdc, O_RDWR) failed:
> Permission denied (13) in /XXXXXXXXXX/pw/pmwiki.php on line 2045
> 
> 
> How do I handle this situation?

Hi,

This looks like a strange error to stumble upon, so my suggestion is
probably out of band, but try setting a different session name in your
config.php (so that your browser cookies have different names for
different sites), for example:

  # at the beginning of local/config.php of your private wiki:
  session_name('pmwiki-private');

  # at the beginning of local/config.php of your public wiki:
  session_name('pmwiki-teaching');

-- 
--  Rogutės Sparnuotos



More information about the pmwiki-users mailing list