CookieStorage
Constructors
new CookieStorage()
new CookieStorage():
CookieStorage
Returns
Source
Accessors
debug
set
debug(pValue
):void
Parameters
• pValue: boolean
Source
hasUserData
get
hasUserData():boolean
Returns
boolean
Source
NEVER_EXPIRE_DATE
get
static
NEVER_EXPIRE_DATE():Date
Returns
Date
Source
Methods
deleteAllData()
deleteAllData():
void
Deletes all data saved in the cookies
Returns
void
Source
deleteItem()
deleteItem(
pID
):void
Parameters
• pID: string
Returns
void
Source
printAll()
printAll():
void
Prints all values stored in cookies
Returns
void
Source
readBool()
readBool(
pID
,pDefault
):boolean
Reads a Bool
Parameters
• pID: string
The ID to read the bool
• pDefault: boolean
= false
The default value of the returned bool
Returns
boolean
Source
readNumber()
readNumber(
pID
,pDefault
):number
Reads a Number
Parameters
• pID: string
The ID to read the number
• pDefault: number
= 0
The default value of the returned number
Returns
number
Source
readString()
readString(
pID
,pDefault
):string
Reads a String
Parameters
• pID: string
The ID to read the string
• pDefault: string
= ''
The default value of the returned string
Returns
string
Source
setCookieExpiration()
setCookieExpiration(
pID
,pExpiryDate
):void
Sets the Expiration date of a cookie
Parameters
• pID: string
The ID of the cookie
• pExpiryDate: Date
The expiry date at which this saved data will be deleted
Returns
void
Source
storeBool()
storeBool(
pID
,pValue
,pExpiryDate
?):void
Stores a Bool
Parameters
• pID: string
The ID to store the bool
• pValue: boolean
The stored bool value
• pExpiryDate?: Date
The expiry date at which this saved data will be deleted
Returns
void
Source
storeNumber()
storeNumber(
pID
,pValue
,pExpiryDate
?):void
Stores a Number
Parameters
• pID: string
The ID to store the number
• pValue: number
The stored number value
• pExpiryDate?: Date
The expiry date at which this saved data will be deleted
Returns
void
Source
storeString()
storeString(
pID
,pValue
,pExpiryDate
?):void
Stores a String
Parameters
• pID: string
The ID to store the string
• pValue: string
The stored string value
• pExpiryDate?: Date
The expiry date at which this saved data will be deleted
Returns
void