I can use session variables without a problem. When I use session cookies I get the following error:
Before
Notice: Undefined index: Username in C:\Program Files\Apache Group\Apache2\htdocs\scripts\get\getMyCookie.php on line 4
After
My scripts are very simple:
setMyCookie.php
<?php
setcookie("Username", "Test", time()+3600);
print "<a href=/scripts/get/getMyCookie.php>Get cookie</a>";
?>
getMyCookie.php
<?php
$uname = "<BR>Before";
print $uname;
print $_COOKIE["Username"];
$uname = "<BR>After";
print $uname;
?>
I'm using apche server on windows 2000 pro.
Any ideas,
Thanks is advance for the hlep.
Masood