in reply to delete cookies when browser window closed

Have the cookie be a session cookie so it expires when the user closes the browser. See HTTP_cookie

  • Comment on Re: delete cookies when browser window closed

Replies are listed 'Best First'.
Re^2: delete cookies when browser window closed
by afoken (Chancellor) on Jul 27, 2010 at 16:21 UTC

    From HTTP COOKIES in the CGI module documentation: "If an expiration date isn't specified, the cookie will remain active until the user quits the browser."

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)