I am having awful trouble with sessions. I have copied the following code into a page and uploaded it. It comes back with the following warning messages
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (session1.php:1) session1.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent
Here is the code. Exactly what am I doing wrong as I copied and pasted it and hacve tried other examples and its uts not working
PHP Code:<?php
session_start();
$_SESSION['views'] = 1; // store
session data
echo "Pageviews = ". $_SESSION
['views']; //retrieve data
?>



Reply With Quote




Bookmarks