is there anyway to get the cookie and destroy it in javascript? Thanks in advance!
Arch_Bytes 0
Newbie Poster
Recommended Answers
Jump to Postset the cookies expiration date to an earlier time than now.
// FUNCTION TO DELETE A COOKIE function deletecookie(name) { var expdate = new Date(); expdate.setTime(expdate.getTime() - 1); document.cookie = name += "=; expires=" + expdate.toGMTString(); }
All 3 Replies
Fungus1487 55
Posting Pro in Training
~s.o.s~ 2,560
Failure as a human Team Colleague Featured Poster
MidiMagic 579
Nearly a Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.