Re: Fw: win98+pws+php4 -- session_start() -- error - cookies
| From: | JÂnis Repsons | Date: | Tue, 01 Aug 2000 21:51:33 +0000 |
| Subject: | Re: Fw: win98+pws+php4 -- session_start() -- error - cookies | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1462@lists.php.net to get a copy of this message | ||
Hallo Matt and Geoka,
1.) [thanks, Matt] session_start() = Ok!
I moved to Top && removed blanks before <? session_start() ?>
[ strange, on linux it was working, session_start() may be at bottom of
page.......]
2.) php3.ini 'tmp' - path was in Unix-style, like /tmp/
--but not c:\temp\ -as it should be!
'Yeeeeeees, it works!!!!!!!!!!!!!!!
> 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.
>