Wouldn't setting max age to -1 expire it??

-----Original Message-----
From: Shuja Nawaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 4:27 PM
To: [EMAIL PROTECTED]
Subject: Porblem expiring cookies


Hi,

I have developed a website. The user has an option to set cookies to
remember his  username and password
by checking a checkbox (I'm setting the cookie to expire after a month).
Now if the user unchecks the checkbox how should I expire the cookies
immediately.
I've tried setMaxAge(0)  but it does't work.

I shall be thankful if you can send me an example how to resolve my problem.

Thank you in anticipation.



Thanks & Regards
Shuwaz Abbasi.
Software Developer.
Ph # 5584677-8.
www.visualsoft-inc.com.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to