Guest User

Untitled

a guest
Jul 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. var url = window.location.href;
  2. var isRegistration = url.indexOf("/registration");
  3.  
  4. if (isRegistration > -1) {
  5.  
  6.  
  7. var cookieName = "RegistrationDetails"
  8.  
  9. function removeItem(sKey, sPath, sDomain) {
  10. document.cookie = encodeURIComponent(sKey) +
  11. "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" +
  12. (sDomain ? "; domain=" + sDomain : "") +
  13. (sPath ? "; path=" + sPath : "");
  14. }
  15.  
  16. removeItem(cookieName);
  17.  
  18. }
Add Comment
Please, Sign In to add comment