Hi everyone,
Got a pesky little issue here with cookies. I have searched numerous forums and numerous posts of how to delete a cookie. So, I am much aware of this doing the trick:
setcookie('cookie_name');
Basically where not assigning any value to a cookie will delete it. (This is just to save some time :P)
Anyways, I wish this was the case, but it's not working. I got it to work on a different portion of my application. However I had to come at it a different angle.
Basically, the way I wanted it to be was a user clicks the "logout" button and the cookies would be deleted and after being deleted, the user would be re-directed to the login page. But, instead I had to make a "logout.php" where the user is directed to this page, the delete cookie works fine, THEN gets directed to the login page.
I would use this technique for my current task in my application, but this would greatly complicate things.
Thanks in advance for any help.