In PHP I'm creating a login coockie like this:
$data = "e".gmdate("dmY");
setcookie("elogado", $data, time() + 600, "/");
When I close the browser and reopen, I will check the coockie like this:
if(isset($_COOKIE["elogado"])){
echo "sim";
}
It falls into this if, that is, the coockie does not close when closing the browser. Is there any way to give unset when closing the browser and / or tab?