jquery cookie

Delete a cookie using php or jquery

By Kannan Damodharan | 0 Comments

Using PHP To remove a cookie in php we can use setcookie function unset($_COOKIE[‘amazon’]); setcookie(‘amazon’, null, -1, ‘/’);where amazon is the name of the cookie. Second parameter must be set to blank or null Third parameter is expire date which should be set to a old or negative value. Fourth parameter is the path of…

Read More