I have problem in my code.
I have tried to search on the right columns some answers that can help me, but i didn't found.
This is my inset code:
<?php
if(isset($_POST['**'])) {
$set_time_out = 60;
setcookie("***", "username", time()+60, "admin");
}
?>
now, my unset code is:
if(isset($_GET['**']) == '***') {
unset($_COOKIE['***']);
}
and when i get in to the "get" link, nothing happened.
the cookie still exists.
help, please :)
EDIT
The login code is..
<?php
if(isset($_POST['*'])) {
$set_time_out = 60;
setcookie('***', '**', time()+60, 'admin/');
}
?>
And my "logout" code is :
`
if(!$_COOKIE['***']) {
echo "<meta http-equiv=\"refresh\" content=\"0;url=../login.php\">";
}
if(isset($_GET['**']) == '******') {
setcookie('***', '', time()-60, 'admin/');
}
?>`