Home Reference Source
public class | source

Cookie

Static cookie class

Static Method Summary

Static Public Methods
public static

get(name: String): String

Returns the value of a browser cookie

public static

set(name: String, value: String, path: String, seconds: Numeric)

Set a browser cookie

Static Public Methods

public static get(name: String): String source

Returns the value of a browser cookie

Params:

NameTypeAttributeDescription
name String

Name of the cookie to be retrieved

Return:

String

Returns the value of the cookie

public static set(name: String, value: String, path: String, seconds: Numeric) source

Set a browser cookie

Params:

NameTypeAttributeDescription
name String

Name of the cookie

value String

Value of the cookie

path String

The cookie path

seconds Numeric

The cookie lifetime