Hi,
I use the following to set a cookie:
var nextYear = new Date();
nextYear.setFullYear(nextYear.getFullYear()+1);
{
document.cookie=cookieName+"="+ Data +"; expires="+ nextYear.toGMTString() +"; path=/"
}
However, I wish to delete any cookies that this has set previously, before setting the new cookie but am not sure how.
TIA
I use the following to set a cookie:
var nextYear = new Date();
nextYear.setFullYear(nextYear.getFullYear()+1);
{
document.cookie=cookieName+"="+ Data +"; expires="+ nextYear.toGMTString() +"; path=/"
}
However, I wish to delete any cookies that this has set previously, before setting the new cookie but am not sure how.
TIA