Deletes, gets, sets cookie data.
Type
- engine
Property Summary
Event Summary
Method Summary
- delCookie( sName )
- Deletes data from the cookie.
- getCookie( sName )
- Gets data from the cookie.
- setCookie( sName , sValue )
- Sets data in the cookie.
- setCookieAsync( sName , sValue )
- Asynchronously sets data in the cookie.
Property Detail
Event Detail
Method Detail
- delCookie( sName )
-
Deletes cookie data.
Parameter name type required description sName String Y cookie name SampleWebSquare.cookie.delCookie("globalDebug"); - getCookie( sName )
-
Gets data from the cookie.
Parameter name type required description sName String Y cookie name Return type description String cookie value SampleWebSquare.cookie.getCookie("globalDebug"); - setCookie( sName , sValue )
-
Sets data in the cookie.
The newly set data will be deleted upon browser termination. (Session Cookie)Parameter name type required description sName String Y cookie name sValue String Y cookie value SampleWebSquare.cookie.setCookie("globalDebug", "false"); - setCookieAsync( sName , sValue )
-
Asynchronously sets data in the cookie.
The newly set data will be deleted upon browser termination.
Blinking occurs upon the cookie being accessed asynchronously on IE. In this case, setCookieAsync is recommended.Parameter name type required description sName String Y cookie name sValue String Y cookie value SampleWebSquare.cookie.setCookieAsync("globalDebug", "false");