Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to destroy cookie in javascript

function delCookie(name){
	document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #destroy #cookie #javascript
ADD COMMENT
Topic
Name
6+3 =