Cookie.server Class
Access point: ac.cookie.* This server-side cookie add-on allows you to easily use cookies.
Methods
get
(
Object
-
[optional]
Returns the cookie for the given key or all the cookies if the key is not specified.
Parameters:
-
[optional]
String optionalkey The key to look for.
Returns:
Object:
contains all the cookies if the key is not specified.
set
(
-
key
-
val
Set a cookie on the given key with the given value
Parameters:
-
key
StringThe key to use.
-
val
StringThe value that will be set.