Unsubscribe Notifications
<![CDATA[ window.REQUEST_CONTEXT_PATH = '/StudentPortal'; window.hashCookie = { name : "sp.client", value: "h7yi6x.mdb8ttru" } window.userCookie = { name : "rsmspuser", value: "" } ; window.fixUserCookie = function() { if( userCookie.value !== "" && chkCookie( userCookie.name ) ) { document.cookie = userCookie.name + "=" + userCookie.value + "; path=/"; document.cookie = userCookie.name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/StudentPortal"; document.cookie = userCookie.name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/StudentPortal/"; if( typeof( console ) === "object" && typeof( console.info ) === 'function' ) { console.info( "fixUserCookie: " + userCookie.name + "=" + userCookie.value ) ; } } return ; } window.fixHashCookie = function() { var cliId = window.readCookie( hashCookie.name ) ; if( cliId !== hashCookie.value ) { window.setCookie( hashCookie.name, hashCookie.value ) ; if( typeof( console ) === "object" && typeof( console.info ) === 'function' ) { console.info( "fixHashCookie: " + hashCookie.name + "=" + hashCookie.value + "; [was: " + cliId + "]") ; } } return ; } window.setCookie = function( name, value ) { if( value == null || value === "" ) { var prefix = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;" ; document.cookie = prefix + "path=/"; document.cookie = prefix + "path=/StudentPortal"; document.cookie = prefix + "path=/StudentPortal/"; } else { document.cookie = name + "=" + value + "; path=/" ; document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/StudentPortal" ; document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/StudentPortal/" ; } return ; } window.clrUserCookie = function ( doNullify ) { var prefix = userCookie.name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC;" ; document.cookie = prefix + "path=/"; document.cookie = prefix + "path=/StudentPortal"; document.cookie = prefix + "path=/StudentPortal/"; if( typeof( console ) === "object" && typeof( console.info ) === 'function' ) { console.info( "clrUserCookie: " + userCookie.name + " was " + userCookie.value ) ; } if( doNullify ) { userCookie.value = null ; } return ; } window.readUserCookie = function ( doUpdate ) { var value = window.readCookie( userCookie.name ) ; if( doUpdate ) { userCookie.value = value ; } return value ; } window.chkUserCookie = function () { return window.chkCookie( userCookie.name ) ; } window.chkCookie = function( name ) { var needFix = true ; var value = "" ; var cname = name + "="; var ca = document.cookie.split(';'); for(var i=0; i<ca.length; i++) { var c = ca[i]; c = c.replace( /^ +/, "" ) ; // trim leading spaces if( c.indexOf( cname ) != -1 ) { value = c.substring(cname.length,c.length).replace( /^ +/, "" ) ; // trim leading spaces if( value !== "" ) { if( value !== userCookie.value ) { needFix = true ; break ; } needFix = false ; } } } return needFix ; } window.readCookie = function( name ) { var value = "" ; var cname = name + "="; var ca = document.cookie.split(';'); for(var i=0; i Unsubscribe Notifications
Source