WebSquare.cookie Package
Type
- engine
Property Summary
Event Summary
Method Summary
- delCookie( sName )
- Deletes data in the cookie.
- getCookie( sName )
- Gets the data of the cookie.
- setCookie( sName , sValue )
- Sets data in the cookie.
- setCookieAsync( sName , sValue )
- Asynchronously sets data in the cookie. The newly set data will be deleted upon browser termination.
Property Detail
Event Detail
Method Detail
- delCookie( sName )
-
Deletes data in the cookie.
Parameter name type required description sName String Y cookie name SampleWebSquare.cookie.delCookie("globalDebug"); - getCookie( sName )
-
Gets the data of the cookie.
Parameter name type required description sName String Y cookie name Return type description String Value of the cookie SampleWebSquare.cookie.getCookie("globalDebug"); - setCookie( sName , sValue )
-
Sets data in the cookie. The newly set data will be deleted upon termination of the browser. (Session cookie)
Parameter name type required description sName String Y cookie name sValue String Y Value of the cookie SampleWebSquare.cookie.setCookie("globalDebug", "false"); - setCookieAsync( sName , sValue )
-
Asynchronously sets data in the cookie. The newly set data will be deleted upon browser termination.
Asynchronously setting the data is to prevent blinking on Internet Explorer.Parameter name type required description sName String Y cookie name sValue String Y Value of the cookie SampleWebSquare.cookie.setCookieAsync("globalDebug", "false");