haXe API Documentation
Back | Index
class js.Cookie
Available in js
static function all() : Hash<String>
Returns all cookies
static function exists(name : String) : Bool
Returns true if a cookie name exists
static function get(name : String) : Null<String>
Returns value of a cookie.
static function remove(name : String, ?path : String, ?domain : String) : Void
Remove a cookie
static function set(name : String, value : String, ?expireDelay : Int, ?path : String, ?domain : String) : Void
Create or update a cookie. expireDelay (seconds), if null, the cookie expires at end of session
Back | Index