Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = window.location.href;
- var isRegistration = url.indexOf("/registration");
- if (isRegistration > -1) {
- var cookieName = "RegistrationDetails"
- function removeItem(sKey, sPath, sDomain) {
- document.cookie = encodeURIComponent(sKey) +
- "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" +
- (sDomain ? "; domain=" + sDomain : "") +
- (sPath ? "; path=" + sPath : "");
- }
- removeItem(cookieName);
- }
Add Comment
Please, Sign In to add comment