[thelist] php session_start() function
Matt Warden
mwarden at gmail.com
Sat Apr 8 18:27:39 CDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Santilal Parbhu wrote:
> When I run it I get the following error:
>
> Warning: open(/tmp\sess_c27a0a85456411904f81baebeda8e71d, O_RDWR) failed: m
> (2) in c:/program files/abria
> merlin/apache/htdocs/gameon/pages/alexbasketball/login.php on line 93
>
> Line 93 is //Main
> Line 94 is session_start();
Do a phpinfo() and tell us what the values of session.save_handler and
session.save_path are.
My guess is that session.save_handler is 'files' and session.save_path
is the default of '/tmp'. If you are on Windows, you have to change this
to a valid directory (e.g. c:/temp) in order to use PHP sessions.
You say: why wouldn't they set the default to a valid directory in the
Windows distribution?
An excellent question. The answer is 42.
(just in case:
http://www.google.com/search?q=the%20answer%20to%20life%2C%20the%20universe%2C%20and%20everything)
- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEOEbrrI3LObhzHRMRAljvAJoCorckLMI87bBPjacQqFDHOQUhSgCeNOjy
gt/gxT2+Gv1ib356G5Huns8=
=zWhL
-----END PGP SIGNATURE-----
More information about the thelist
mailing list