[Edu-sig] Disable Cookie when user close browser

Dustin Mitchell dustin@cs.uchicago.edu
Mon, 8 Oct 2001 20:37:31 -0500 (CDT)


On Mon, 8 Oct 2001, Titu Kim wrote:

>   How can i disable the cookie after user closes the
> browser? I can disable user by setting the expire time
> to certain value. But i wish i could disable cookie
> when users close their browsers. Any suggestion is
> very appreciated.

IIRC, the cookie RFC (RFC2109, http://www.rfc-editor.org/rfc/rfc2109.txt)
states that a cookie without an expiration will be discarded when the user
closes the browser.  At a cursory look, I can't find the chapter and
verse, but I'm pretty sure it's in there.  Netscape's cookie page
(http://home.netscape.com/newsref/std/cookie_spec.html) *does* spell this
out explicitly.

Enjoy.

Dustin

-- 

  Dustin Mitchell
  dustin@cs.uchicago.edu
  dustin@ywlcs.org