Page 1 of 1

Session variables not passing over

Posted: Mon Oct 23, 2006 9:48 pm
by SoreE yes
Hi, my session variables are not passing over. Instead I get an error message:

Warning: session_start() [function.session-start]: open(/tmp\sess_186317b6a3ef60f4efa1a834b9203d10, O_RDWR) failed: No such file or directory

I notice that in the php.ini file, it states:

Code: Select all

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this 
; variable in order to use PHP's session functions.
session.save_path = /tmp
I am using Windows, but don't know what to change it to. Any ideas? Thanking you in advance.

Posted: Tue Oct 24, 2006 3:03 am
by twigletmac
You need to change it to the path of a folder in which you want to save session files - this can be an existing folder or one you create specifically for the job. If you're installing on a server you also need to make sure that the folder is writeable.

So you could have something like:

Code: Select all

session.save_path = c:/php/temp
Mac

Problem solved

Posted: Wed Oct 25, 2006 12:12 am
by SoreE yes
Thanks twigley, that worked a treat.