Page 1 of 1

iis problem with session

Posted: Sun Mar 06, 2005 4:14 pm
by reion
i have a suggestion to make, which would be perfect for such persons, who use iis, but have no access to their session-dir ...

just put in line 4 (serendipity_config.inc.php) this:

Code: Select all

ini_set('session.save_path', dirname(__FILE__) . '/sessions/');
therefore you have to create the sessions dir ...

Re: iis problem with session

Posted: Mon Mar 07, 2005 12:10 pm
by garvinhicking
I consider this to be an apparent flaw in the server setup, which Serendipity is not responsible to fix. Sessions should work for each of the seperate hosts, and correct paths should be set in the Server configuration.

Adding the code to Serendipity skews the problem and introduces redundant code for 99% of all setups.

If you really need this, I suggest to put it inside .htaccess or serendipity_config_local.inc.php (which will be preserved by Serendipity on upgrades)

Regards,
Garvin