i have this following errors, when i run a very simple script to learn how to use session variables..
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at F:\portsaidmall\test\session2\person.php:48) in F:\portsaidmall\test\session2\one.php on line 5
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at F:\portsaidmall\test\session2\person.php:48) in F:\portsaidmall\test\session2\one.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at F:\portsaidmall\test\session2\person.php:48) in F:\portsaidmall\test\session2\one.php on line 7
i have one file that is a class declaration, its very simple, it has just one attribute, defined as login_name, i have another file that instantiates the class, and set's the attribute as follows:
<?php
include 'person.php';
session_start();
$myPerson = new person();
$myPerson->Login_Name = "sam";
$_SESSION['myPerson'] = serialize($myPerson);
header("location: two.php");
?>
now, i get this header error quite frequently, and i don't understand what it means, can someone please shed some light on this problem
thanks
sam