I try to use session funciton but it doesn't work "Warning: Cannot send session cookie - headers already sent by (output started at D:\testphp\session01.php:2) in D:\testphp\session01.php on line 2" i use pws and php 4.0.6
thanks.
I had the same problem once. Make sure to call setcookie at the very start of the page, before ANY html code is sent. Cookies are sent with the header, thus cannot be set if you are already beyond the header.
Sample code please. I don't understand header. Thanks in advance.
Just call set_cookie at the very start of the script and everything will be fine!