Sessions
| From: | Nick Chorley | Date: | Sat, 12 Oct 2002 11:40:37 +0000 |
| Subject: | Sessions | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16348@lists.php.net to get a copy of this message | ||
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