Jump to content

Cookie destroy problem


noobstar

Recommended Posts

Hi there,

After using some references from php.net and looking at some examples i found for the logout script to destroy a cookie, i still failed in getting the cookie destroyed.

This is what happens i go to the login page type in my login details then it runs the login script once validated it passes the me to the members area page when i click on Logout it should log out however, it does not.

[code]
<?php

//this makes the time in the past to destroy the cookie
setcookie(ID_my_site, gone, time() - 3600);
setcookie(Key_my_site, gone, time() - 3600);

?>
[/code]

Please if you have anu suggestions or ideas why it doesn't work let me know.

Thank you in advance :)
Link to comment
https://forums.phpfreaks.com/topic/29085-cookie-destroy-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.