[thelist] php session_start() function

Santilal Parbhu santilal at scorpioneng.co.nz
Sat Apr 8 19:44:05 CDT 2006


Thanks,

I have had another reply suggesting the same thing.  What should the setting
be for session.save_handler.  Is "files" OK.

Santilal

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org]On Behalf Of Matt Warden
Sent: Sunday, 9 April 2006 11:28 a.m.
To: thelist at lists.evolt.org
Subject: Re: [thelist] php session_start() function


-----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-----
--

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !





More information about the thelist mailing list