Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at #####) in ##### on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at #####) in ##### on line 3Im getting these warnings on my webpage while im using this code for my session:
<?php //Line 2
session_start(); //Line 3
$_SESSION['name'] = $_GET['name']; //Line 4
?> //Line 5How can i fix this? Im making it so when u go to the index, javascript makes u insert ur name, then ur redirected to welcome.php?name=YourNameHere and it starts the session so i can keep track of what person views what. Thanks in advance.