Forum Moderators: coopster

Message Too Old, No Replies

Set cookie in IE doesnt work in FF

         

smagdy

5:59 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



Hi, am facing problem in Firefox which is working fine in IE.

This code doesnt set a Cookie in FF but it does in IE..

$id = $_POST['sendmobID'];
$var = $_POST['vote'];

setcookie ($id+1, $id, $time + 7776000);

header("Location: specs_".$var."_".$id."");

so what could be wrong?

Thanks in advance

Zipper

6:07 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



// A frequent issue turned the other way around..

anyway, check your firefox privacy settings. if the code works fine then it has to do with the browser configuration.

smagdy

6:57 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



i didnt change anything in the setting.. and i checked it.. its just normal allowing cookies untill they expire..

dreamcatcher

8:01 pm on Aug 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is the problem with the $time variable? How is that populating?

Should it be: time()

dc

smagdy

8:26 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



Wow WORKED :)

HOw did IE let it work like this $time!

Why $Bill gate$? :)

smagdy

8:27 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



yeah i think it worked with $time

because it counted the $time as 0 and added to it the rest!

dreamcatcher

8:29 pm on Aug 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad you got sorted.

dc