Cookie Problem
Hi All,
Here i am facing a strange situation in cookie.
Its not reading, before 6 hrs from now its working (reading and writing), but not working at all.. its not reading at all .. tried both in IE and Firefox.
Also when it was reading, i found that the value2 is showing different value than which is stored in cookie... code is perfect, no encrypn, and i delete cache too.
this is what i used:
if(isset($_REQUEST['remember']))
{
$coo_user = $row['username'];
$coo_pwd = $row['pass'];
setcookie("cookie1", $coo_user, time()+60*60*24*7);
setcookie("cookie2", $coo_pwd, time()+60*60*24*7);
}
// writing succussfully
(pwd is encrypted)
if(isset($_COOKIE["cookie1"]) && isset($_COOKIE["cookie2"])){
echo $value1 = $_COOKIE["cookie1"];
echo $value2 = $_COOKIE["cookie2"];
}
what hapnd? im confused, have any one faced this situation?
Thank You,
Reji,
PHP Developer.
==================
[Non-text portions of this message have been removed]
[PHP Home]
[PHP Users]
[PHP Soap]
[Kernel Newbies]
[Yosemite]
[Yosemite Campsites]