Using a Checkbox to clear cookies
Posted on 2013-06-26
I currently have a page that shows a 'hint' when the browser detects a presence of a coldfusion cookie. I have always wondered how those web pages work when there is a checkbox that states that if I check the box, the hint would not show anymore the next time the page loads. I am hoping to accomplish the same thing.
Currently, when a person signs up to login to the site, I create a cookie that never expires called 'newmember' and a hint would show up on the welcome page.
<div>This is a hint</div>
I was wondering how I could place a checkbox on the page to state that 'If you check this checkbox, this hint will not show again'. So, once the user checks the box, the cookie 'newmember' will be deleted....
Thanks very much for any insights.