I wrote a login script which works perfectly fine in firefox and did work in explorer.. all of a sudden, out of the blue, it doesn't work in explorer...
here is the code, do you guys see anything wrong with this?
Code: Select all
$randomnumber = md5($rannum);
$time = 30 + time();
$domain = '.mydomain.com';
setcookie("MydomainVar", $randomnumber, $time, "/", $domain);Code: Select all
$randomnumber = md5($rannum);
$time = time()+30;
$domain = '.mydomain.com';
setcookie("MydomainVar", $randomnumber, $time, "/", $domain);[/Now if I set the cookie to the following, it works.
Code: Select all
$randomnumber = md5($rannum);
$domain = '.mydomain.com';
setcookie("MydomainVar", $randomnumber, 0, "/", $domain);What am I doing wrong? The key is that it works in firefox and it did work in explorer.
Thanks for your help!!