Re: Fw: win98+pws+php4 -- session_start() -- error - help me, please!

From: Date: Mon, 31 Jul 2000 18:13:42 +0000
Subject: Re: Fw: win98+pws+php4 -- session_start() -- error - help me, please!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1433@lists.php.net to get a copy of this message
Hello JÂnis, The first error: JR> Warning: Cannot send session cache limiter - headers already sent by (output JR> started at C:\Inetpub\wwwroot\gintautas\default.php:8) in JR> includes/sysenv.php on line 2 is caused because you have already sent some output to the browser by the time you started a session (and you are using cookies). When you start a session (with cookies) essentially the command Header("Set Cookie: PHPSESSID=(some semi-random string of chars here) ....") is used. This means that NO data can be sent to the browser before session_start(). Check to make sure there isn't any whitespace anywhere before the <? tag. The second error: JR> Warning: open(/tmp/sess_1f701406106b4512db97043a5be0cf7d, O_RDWR) failed: m JR> (2) in includes/sysenv.php on line 2 JR> /*---------------------------------*/ This stems from not having changed the session.save_path value in your php.ini file. JR> Warning: Failed to write session data. Please check that the current setting JR> of session.save_path is correct (/tmp) in Unknown on line 0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Open the php.ini file in your windows directory and alter this to use a directory where you want session files to be stored (c:\temp, c:\php\sessions, whatever you want). Matt

« previous php.windows (#1433) next »