KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to remove cookie that was set on front via JS with PHP? I'm doing this: *FRONT (JS): if ($.cookie('myCookie')) { console.log('Cookie.. :( '); } else { console.log('Yaay! No cookie!'); $.cookie('myCookie', '123'); } BACK (PHP): if (isset($_REQUEST['removeCookie'])) { setcookie("myCookie", "", time()-3600); unset($_COOKIE['myCookie']); } Result: Seems like it's a mistery
Tags (comma-separated)
Save Edits
Cancel