How to read a cookie when path variable is different(Not default)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am new to forum ,It may look as a simple problem, but I am not
able to solve this.
In following code , I have hard coded the path while setting cookie, now
how I read it through PHP ?
 
echo("cookie value name is : $name"); // this do not return anything.
 
Thanks,
Bibhu
 

<HTML>
  <HEAD>
         <TITLE>IWIN Search</TITLE>
<script>
function setCookie()
{
 
         var expire = new Date();
         expire.setTime(expire.getTime() + 2592000000);
 
        document.cookie= "name= test; expires=" + expire.toGMTString() +
";domain=.schwab.com;path=/iwin2005";
 }
</script>
<body onLoad='setCookie()'>
<?php
echo("cookie value name is : $name");
?>
</body>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux