Jump to content


Photo

Problems with deleteing cookies


  • Please log in to reply
2 replies to this topic

#1 ASCIIDuck

ASCIIDuck
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 07 July 2006 - 05:54 AM

I never thought the log *out* script would wind up giving me trouble! When I use Firefox, the following code segment doesn't delete the cookies, so the user isn't logged out, however, it works in IE. Any idea how to fix this?
<?php
setCookie("username","",time()-50000);
setCookie("keyid","",time()-50000);
header("location: http://ronksales.com");
?>

#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 07 July 2006 - 08:39 AM

What about trying to use this
<?php
setcookie ("username");
setcookie ("keyid");
?>


Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 ASCIIDuck

ASCIIDuck
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 07 July 2006 - 05:30 PM

That did the same thing as what I had.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users