Programming Reference:Functions:CCSetCookie

From CodeCharge Studio Community Wiki

Jump to: navigation, search

Description
Creates a new cookie and assigns the specified value to it or sets the specified value to the named cookie if it already exists.

Location
Common

Syntax

CCSetCookie(Name, Value[, ExpireTime])


Parameters

Name Type Description Required
Name string Name of the cookie whose value is to be set. Yes
Value string The value to be assigned to the cookie. Yes
ExpireTime integer The number of seconds before the cookie expires. If the parameter is not specified the cookie will be destroyed after 1 year. No
Personal tools