Javascript Not deleting all cookies -


i using following code delete cookie:

document.cookie = "cookiename=; expires=thu, 01 jan 1970 00:00:00 utc"; 

there 2 cookies, 1 in on domain www.websiteaddress.com , other on .websiteaddress.com. when on page www.websiteaddress.com cookie having domain address www.websiteaddress.com gets deleted other 1 not deleted. how can delete both cookies while loading javascript on www.websiteaddress.com

you not allowed delete cookies on site. because there no guarantee own both www.websiteaddress.com , .websiteaddress.com. can delete cookies set current domain.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -