Thread: Tech .htpasswd logout?
View Single Post
Old 03-16-2022, 02:17 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
Code:
if (isset($_COOKIE['my_user_cookie'])) {
    unset($_COOKIE['my_user_cookie']);
    setcookie('my_user_cookie', '', time() - 3600, '/');
    header('Location: https://gfy.com/');
}
Or maybe I just didn't get the question.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote