View Full Version : What session path does sessionPath.php need
TheMusician
12-28-2006, 03:49 PM
I am trying to set easyCalendar up on a test server, I am having problems with the sessions.
I assume the file sessionPath.php and it's one line session_save_path is looking for the php.ini variable session.save_path. Is this correct?
Thank you,
Brian
12-28-2006, 04:40 PM
Sessions are generally configured in php.ini on the server. If you need to specify a sessions path (because the server admin or web host provider says you need to), you would do this using the sessionsPath.php file in the setup directory.
(Make sure the sessions directory is writable.)
TheMusician
12-28-2006, 06:24 PM
Thank you for the reply Brian. I understand that sessions are configured on the server using the php.ini file. I have done that, and made the sessions directory writeable but to no avail. I'll just keep plugging away, something always ends up working. Thanks.
:kitty:
TheMusician
12-28-2006, 07:14 PM
Ouch- I hit a brick wall
I am running a win2003server with PHP 5.2
my php.ini session save path is set to "C:\Inetpub\wwwroot\tmp"
my sessionPath file is set to the exact same thing session_save_path("C:\Inetpub\wwwroot\tmp");
The tmp directory has full write permissions. I still am in the loop. I must be missing something obvious, any hints? Thank you very much.
Brian
12-28-2006, 07:26 PM
Since you're on windows, I think the sessions directory needs full admin privileges? But, I'm not a server person...
I wish I could be more specific and of more help, but there are just too many possibilities with server configurations and it's a little beyond my expertise.
ve9gra
12-29-2006, 10:15 AM
This is because in the PHP / Linux world, a backslash is an escape character. If you want to display a actual backslash in a variable, you have to do \\. So your path would end up being C:\\Inetpub\\wwwroot\\tmp
TheMusician
12-29-2006, 12:02 PM
Aha! ve9gra, thank you. That fixed the problem right away. Thanks again. I will keep that in mind when working with PHP on a windows box.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.