You May Try this
if (isset($_COOKIE['remember_user'])) {
unset($_COOKIE['remember_user']);
setcookie('remember_user', null, -1, "https://stackoverflow.com/");
return true;
} else {
return false;
}
More Related Contents:
- How to create cookies in website rather then browser? [duplicate]
- cookies not working in two browsers [duplicate]
- How Secure Is This Login System? (Using Cookies In PHP)
- Accessing $_COOKIE immediately after setcookie()
- PHP Curl And Cookies
- PHP login system: Remember Me (persistent cookie) [duplicate]
- Cookies vs. sessions
- How to login in with Curl and SSL and cookies
- Storing PHP arrays in cookies
- Set cookie wih JS, read with PHP problem
- confusing about this cookies in redirecting system
- file_get_contents receive cookies
- PHP – Session destroy after closing browser
- How do I use cookies across two different domains?
- How to set cookies for uuid
- How can I scrape website content in PHP from a website that requires a cookie login?
- How to destroy the session cookie correctly with PHP?
- How to fix “set SameSite cookie to none” warning?
- PHP cookie problem – www or without www
- phpmyadmin automatic logout time
- What is PHPSESSID?
- CakePHP remember me with Auth
- Is it possible to set the cookie content with CURL?
- Login to Google with PHP and Curl, Cookie turned off?
- How to get cookie’s expire time
- Session timeouts in PHP: best practices
- PHP session IDs — how are they generated? [duplicate]
- PHP authentication with multiple domains and subdomains
- Setting a cookie in an AJAX request?
- How to send cookies with file_get_contents