mironjohan
11-14-2006, 11:54 PM
How do i create a login to my website. I tried to set $_SESSION['login']='yes';
But when i run session_start()
i get:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ebookcho/public_html/test/login.php:13) in /home/ebookcho/public_html/test/login.php on line 17
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ebookcho/public_html/test/login.php:13) in /home/ebookcho/public_html/test/login.php on line 17
The session variable 'login' is lost when tried to be accessed from a different page. Can some one please help me solve this.
:confused:
Thank You.
But when i run session_start()
i get:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ebookcho/public_html/test/login.php:13) in /home/ebookcho/public_html/test/login.php on line 17
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ebookcho/public_html/test/login.php:13) in /home/ebookcho/public_html/test/login.php on line 17
The session variable 'login' is lost when tried to be accessed from a different page. Can some one please help me solve this.
:confused:
Thank You.