Hi,

cookies are sent as header information. This means you can't send
any output (html-tag, whitespaces before <?php) at all before
sending cookie/header information.
As your error message tells you the output already started in line 4.
Move the cookie-part from line 6 to the beginning and it should
work.

Johannes

"Dan Guja" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i've got error message when i put some session variables on my pagge:
>
> Warning: Cannot send session cookie - headers already sent by (output
started at
/home/httpd/vhosts/coliba.freephp.digiro.net/htdocs/user/index.php:4) in
/home/httpd/vhosts/coliba.freephp.digiro.net/htdocs/user/index.php on line 6
>
>  Anyone can expline me whta does it mean?
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to