I'm having problems with errors saying that session cookies cannot be sent, as header data has already been sent, and cant figure out why! I have the session start command as the first line of php, and it is enclosed in the head tags. The error message is...
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/abdpqj/public_html/login.php:3) in /home/abdpqj/public_html/login.php on line 4
The code I am using is...
Code:<html> <head> <? session_start(); $_SESSION['logged']="0"; ?> </head> <body> <form name="login" action="member.php" method="post"> Username: <input name="name" type="text" id="name"><br> Password: <input name="pass" type="password" id="pass"><br> <input type="submit" name="submit" value="submit"> </form> </body> </html>




Bookmarks