API Docs for: 0.9.0
Show:

Cookie.server Class

Access point: ac.cookie.* This server-side cookie add-on allows you to easily use cookies.

Item Index

Methods

Methods

get

(
  • [optional]
)
Object

Returns the cookie for the given key or all the cookies if the key is not specified.

Parameters:

  • [optional] String optional

    key 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 String

    The key to use.

  • val String

    The value that will be set.