[thelist] php session_start() function
misterhaan
misterhaan at track7.org
Sat Apr 8 16:11:21 CDT 2006
Santilal Parbhu wrote:
> 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();
>
Here it's trying to write to /tmp, which doesn't make much sense to
Windows XP. Edit your php.ini and change the temp directory setting to
something that exists, like c:/windows/temp possibly.
> I also get the error:
>
> Warning: Session object destruction failed in c:/program files/abria
> merlin/apache/htdocs/gameon/pages/alexbasketball/login.php on line 109
>
> Line 109 is session_destroy();
>
It can't destroy the session because it was never able to create one.
If this doesn't go away though, you can suppress the message using
@session_destroy() instead of session_destroy(). This isn't really
fixing the problem though -- it's just hiding the warning.
More information about the thelist
mailing list