save up to 40%

How to delete a cookie?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

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:

document.cookie="cookiename=cookiedata
[; 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

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.