[pmwiki-devel] cannot establish a session

Petko Yotov 5ko at 5ko.fr
Mon Sep 13 07:04:10 CDT 2010


On Wednesday 08 September 2010 03:21:32 you wrote:
> I played with the ini configurations
>  session.use_cookies = 0 and 1
> but that did not solve the issue.

Hello. Sorry I didn't find the time Thursday, but now I could log in and confirm 
the issue -- the server didn't send a cookie. (Forwarding to the mailing list 
in case someone has a similar problem.)

So, as Rotuges suggested, you need to edit the /etc/php.ini file which is 
loaded by the server, and change the following variables :

  session.use_cookies = 1
  session.use_only_cookies = 1
  session.gc_maxlifetime = 1440


If you cannot edit /etc/php.ini, you can instead set in the beginning of 
config.php the following lines :

<?php
  ini_set('session.use_cookies', 1);
  ini_set('session.use_only_cookies', 1);
  ini_set('session.gc_maxlifetime', 1440);

You can look at your config.php now, the wiki seems to work fine with passwords 
(the password is "quick" on the page PetkoTest.)


Thanks,
Petko



More information about the pmwiki-devel mailing list