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



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

    • ... Johannes Janson
  • ... Flint Doungchak
  • ... jax
  • ... Dan Zarrella
  • ... Dale Heil
  • ... Alberto. Sartori
  • ... Peter Finch
    • ... Ernani Joppert Pontes Martins
  • ... Scott Hurring
    • ... Peter Finch
  • ... Nick Chorley
  • ... Шестаков Николай
  • ... Miha Nedok
    • ... Robert Hawke
    • ... Luis Ferro
      • ... Achilles Maroulis
        • ... Luis Ferro

Reply via email to