Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004

    Unanswered: delete cookie when closing broswer

    hi all can someone show me a simple example of deleting a cookie when closing the broswer?

    also, when i create a cookie where is it saved? i',m looking in docs & settings\user\cookies but when i create a cookie it's not in there. i'm developing on my local pc, so in my broswer i type http://localhost/mypage.php

    many thanks

  2. #2
    Join Date
    Apr 2006
    Denver, Co. USA
    To get a cookie to expire when the browser closes, don't set the expire time, just set the name and value.

    If you do the above, a cookie file is not written to the docs & settings\user\cookies folder, it is simply held in the browser's cache, then deleted when the browser closes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts