sessions error...
Posted: Tue Jan 10, 2006 7:17 pm
HawleyJR | Please use
and here is line 51:
HawleyJR | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]Code: Select all
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\apache\xampp\htdocs\index.php:8) in C:\apache\xampp\htdocs\index.php on line 51
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\apache\xampp\htdocs\index.php:8) in C:\apache\xampp\htdocs\index.php on line 51Code: Select all
<?php
session_start();
if($_SESSION['auth'] == true){
echo '<a href="index.php?page=logout">log out</a>';
}else{
echo '<a href="index.php?page=login">login</a><span class="style4"> •</span> <a href="index.php?page=register">register</a>';
}
?>Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]