Posted by FD on 07/13/05 19:15
Hi...
I am running PHP Version 4.3.11 with Apache 2.0.54 on XP Pro.
When I do a session_start(); I am getting
Warning: session_start(): Cannot send session cookie - headers already
sent in C:\apache\htdocs\sessionTest.php on line 2
<?php
session_start();
if ($_SESSION["last_visist"]){
echo "Date of las visit: ";
echo date("j F Y, H:i:s", $_SESSION["last_visit"]);
echo "<br>";
}
else
echo "This is your first visit";
$_SESSION["last_visit"] = time();
$_SESSION["num_visits"]++;
?>
Any suggestion... please
Thanks
[Back to original message]
|