RE: Sessions

From: Date: Sat, 12 Oct 2002 11:57:01 +0000
Subject: RE: Sessions
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16349@lists.php.net to get a copy of this message
use absolute path like including the last slash in php.ini: session.save_path=c:\temp\phpsess\ regds, -----Original Message----- From: Nick Chorley [mailto:nylex@barrysworld.com] Sent: Saturday, October 12, 2002 17:11 To: php-windows@lists.php.net Subject: Sessions How can I use session functions on Windows? The PHP Manual says this: session.save_path defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created. Defaults to /tmp. If session.save_path's path depth is more than 2, garbage collection will not be performed Note: Windows users have to change this variable in order to use PHP's session functions. Make sure to specify a valid path, e.g.: c:/temp. I tried this. I removed /tmp from my php.ini file and specified another directory and then saved the file. When I try to run a script with sessions in it, I get: Warning: Failed to write session data. Please check that the current setting of session.save_path is correct (/tmp) in Unknown on line 0. phpinfo() has the local and master value of session.save_path as being /tmp. How can I get it to work? Thanx, NC

« previous php.windows (#16349) next »