Retrieves cookies that are accessible by the current page. If a cookie
+
Package: | Ext.util |
Defined In: | Cookies.js |
Class: | Cookies |
Extends: | Object |
|
Utility class for managing and interacting with cookies.
This class is a singleton and cannot be created directly.
Public Properties
This class has no public properties.
Public Methods
|
| clear( String name )
+ :
+ voidRemoves a cookie with the provided name from the browser
+if found by setting its expiration date to sometime in the ... Removes a cookie with the provided name from the browser
+if found by setting its expiration date to sometime in the past. | Cookies |
| get( String name )
+ :
+ MixedRetrieves cookies that are accessible by the current page. If a cookie
does not exist, get() returns null. The foll... Retrieves cookies that are accessible by the current page. If a cookie
does not exist, get() returns null. The following
example retrieves the cookie called "valid" and stores the String value
in the variable validStatus.
- var validStatus = Ext.util.Cookies.get("valid");
| Cookies |
| set( Object name , Object value , [Object expires ], [String path ], [String domain ], [Boolean secure ] )
- :
- voidCreate a cookie with the specified name and value. Additional settings
+ var validStatus = Ext.util.Cookies.get("valid");
| Cookies |
| set( String name , Mixed value , [Object expires ], [String path ], [String domain ], [Boolean secure ] )
+ :
+ voidCreate a cookie with the specified name and value. Additional settings
for the cookie may be optionally specified (f... Create a cookie with the specified name and value. Additional settings
for the cookie may be optionally specified (for example: expiration,
-access restriction, SSL). Parameters:name : Objectvalue : Objectexpires : Object(Optional) Specify an expiration date the
+access restriction, SSL). Parameters:name : StringThe name of the cookie to set. value : MixedThe value to set for the cookie. expires : Object(Optional) Specify an expiration date the
cookie is to persist until. Note that the specified Date object will
be converted to Greenwich Mean Time (GMT). path : String(Optional) Setting a path on the cookie restricts
access to pages that match that path. Defaults to all pages ('/'). domain : String(Optional) Setting a domain restricts access to
|