PHP cookie removal in FireFox 14.0.1
Posted
by
sepoto
on Stack Overflow
See other posts from Stack Overflow
or by sepoto
Published on 2012-08-27T01:42:21Z
Indexed on
2012/08/29
3:38 UTC
Read the original article
Hit count: 207
<?php
session_start();
$_SESSION['logged_in'] = false;
setcookie("dsgpassword127", $password, time()-3600); /* expire the cookie */
setcookie("dsgemail127", $email, time()-3600); /* expire the cookie */
session_destroy();
header("location: index.php");
?>
The code above which works very well in Chrome will not remove the cookies in FireFox 14.0.1. I am wondering why this is, if anyone has experienced the same problem or if there is a solution to this conundrum I am in when it comes to expiring these cookies....
Thank you.
© Stack Overflow or respective owner