[thelist] cookies in perl/cgi

Anthony Baratta Anthony at Baratta.com
Mon Jul 24 10:55:03 CDT 2000


Adrian Fischer wrote:
> 
> Again ..thanks Anthony,
> 
> I finally got it so that I can set a cookie but I want it to expire when the
> browser is closed.  I am setting using the date as you suggested :
> print "Set-Cookie: approved=YES; expires=Tue-25-Jul-2000 00:00:00 GMT;
> 
> Could you please explain the format for getting it to expire when the
> browser closes?

John is correct. Just leave out the expiration time. If you set an expiration time in
the past, Netscape will keep the cookie until the browser closes, IE will discard the
cookie immediately.

-- 
Anthony Baratta
President
KeyBoard Jockeys
                    South Park Speaks Version 3 is here!!!
                       http://www.baratta.com/southpark
                              Powered by Tsunami




More information about the thelist mailing list