nl_tokens: set - set or delete a cookie with desired options
pl_tokens: function ( n , v , o ) { if ( typeof o !== 'object' || o === null ) { o = { } ; } if ( v === undef || v === null ) { v = '' ; o . expires = new Date ( ) ; o . expires . setFullYear ( 1978 ) ; } else { /* Logic borrowed from http://jquery.com/ dataAttr method and reversed */ v = ( v === true ) ? 'true' : ( v === false ) ? 'false' : ! isNaN ( v ) ? <mask> ( v ) : v ; if ( typeof v !== 'string' ) { if ( typeof JSON === 'object' && JSON !== null && typeof JSON . stringify === 'function' ) { v = JSON . stringify ( v ) ; } else { throw new Error ( 'cookies.set() could not be serialize the value' ) ; } } } document . cookie = n + '=' + encodeURIComponent ( v ) + cookieOptions ( o ) ; }