M
M
MhMadHamster2014-11-10 22:23:54
PHP
MhMadHamster, 2014-11-10 22:23:54

How to delete cookies in firefox?

Simple example:
login.php file
session_start();
// log in
file logout.php
session_start();
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-1, '/');
}
session_destroy();
In google chrome, when logout.php is launched, the phpsessid cookie is expectedly overwritten and if you go to login.php a new value appears there, in firefox the cookie value is saved.
Actually the question itself is: why is this happening and how to make the behavior of the fox be the same as that of Google Chrome?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladik Limonadik, 2014-11-10
@knitevision1

$cook do delete';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question