Hello,
I'm building a website, and it is finally going along great! I want to add cookies to remember some fields of an inputform, and it seems to work.
The user will indicate via a checkbox if he wants the cookie set or not.
Now, suppose a user has set the cookie, and returns to the page. That cookie-set-checkbox is also stored, so it will be 'checked'. If the user unchecks this box, I'd like to delete the cookie.
Is there a function to do so, or must I simply set the same cookie with an expiration date in the past?
Thanks!
Jörg
I'm building a website, and it is finally going along great! I want to add cookies to remember some fields of an inputform, and it seems to work.
The user will indicate via a checkbox if he wants the cookie set or not.
Now, suppose a user has set the cookie, and returns to the page. That cookie-set-checkbox is also stored, so it will be 'checked'. If the user unchecks this box, I'd like to delete the cookie.
Is there a function to do so, or must I simply set the same cookie with an expiration date in the past?
Thanks!
Jörg
Comment