How to delete a cookie?
How to delete a cookie?
Rating:
Cookie is a property of the document object that is used in server-side script for sending and receiving data between the Web browser and the Web server. A cookie is used to store data on a client computer in a very secure manner. It is commonly used as a means to store the username and password entered in a password protected Web site.
The following syntax is used to create a cookie:
[; expires=timeinGMTstring]
[; path=pathname]
[; domain=domain=domainname]
[; secure]"
When the expires attribute is provided, the cookie is automatically deleted after the expiration date. To delete a cookie before the expiration date, the date and time of the cookie has to be changed to an earlier date in the cookie file. If the expires attribute is not provided, the cookie is deleted after the session is completed.
Rating:
Other articles
- What is the Math object?
- What is instantiation?
- How to use the Date object?
- What is the host property?
- What is the hidden object?
