| Package | com.jeffdePascale.fosfr.utils |
| Class | public class Cookies |
| Method | Defined by | ||
|---|---|---|---|
|
Cookies()
| Cookies | ||
|
cookiesEnabled():Boolean
[static]
Determines whether cookies are enabled on the client browser.
| Cookies | ||
|
deleteCookie(cName:String):void
[static]
Deletes the specified cookie by setting its expiration date to be earlier than now.
| Cookies | ||
|
getCookie(cName:String):String
[static]
Returns the value of the cookie with the specified name.
| Cookies | ||
|
setCookie(cName:String, cValue:String, cExpires:Date = null):String
[static]
Creates or sets the value of a cookie.
| Cookies | ||
| Cookies | () | constructor |
public function Cookies()
| cookiesEnabled | () | method |
public static function cookiesEnabled():BooleanDetermines whether cookies are enabled on the client browser.
ReturnsBoolean — A boolean value specifying whether cookies are enabled on the client browser.
|
| deleteCookie | () | method |
public static function deleteCookie(cName:String):voidDeletes the specified cookie by setting its expiration date to be earlier than now.
ParameterscName:String — The name of the cookie to delete.
|
| getCookie | () | method |
public static function getCookie(cName:String):StringReturns the value of the cookie with the specified name.
ParameterscName:String — The name of the cookie to get.
|
String — The value of the specified cookie.
|
| setCookie | () | method |
public static function setCookie(cName:String, cValue:String, cExpires:Date = null):StringCreates or sets the value of a cookie.
ParameterscName:String — The name of the cookie.
|
|
cValue:String — The value of the cookie.
|
|
cExpires:Date (default = null) — When the cookie should expire.
|
String — The cookie text ("name=value")
|