PropertyEventMethodIndex
WebSquare.cookie - 5.0_2.3750B.20190805.154938

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
nametyperequireddescription
sNameStringYcookie name
Sample
WebSquare.cookie.delCookie("globalDebug");
getCookie( sName )
Gets the data of the cookie.
Parameter
nametyperequireddescription
sNameStringYcookie name
Return
typedescription
StringValue of the cookie
Sample
WebSquare.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
nametyperequireddescription
sNameStringYcookie name
sValueStringYValue of the cookie
Sample
WebSquare.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
nametyperequireddescription
sNameStringYcookie name
sValueStringYValue of the cookie
Sample
WebSquare.cookie.setCookieAsync("globalDebug", "false");