Reply to Warning: session_start(): Cannot send session cookie - headers already sent i

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация