X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/api/Ext.util.Cookies.html diff --git a/docs/api/Ext.util.Cookies.html b/docs/api/Ext.util.Cookies.html new file mode 100644 index 00000000..cf32853a --- /dev/null +++ b/docs/api/Ext.util.Cookies.html @@ -0,0 +1,87 @@ +
Utility class for setting/reading values from browser cookies. +Values can be written using the set method. +Values can be read using the get method. +A cookie can be invalidated on the client machine using the clear method.
+Removes a cookie with the provided name from the browser +if found by setting its expiration date to sometime in the past.
+The name of the cookie to remove
+(optional) The path for the cookie. This must be included if you included a path while setting the cookie.
+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");
+
+
+The name of the cookie to get
+Returns the cookie value for the specified name; +null if the cookie name does not exist.
+Create a cookie with the specified name and value. Additional settings +for the cookie may be optionally specified (for example: expiration, +access restriction, SSL).
+The name of the cookie to set.
+The value to set for the cookie.
+(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).
+(Optional) Setting a path on the cookie restricts +access to pages that match that path. Defaults to all pages ('/').
+(Optional) Setting a domain restricts access to +pages on a given domain (typically used to allow cookie access across +subdomains). For example, "sencha.com" will create a cookie that can be +accessed from any subdomain of sencha.com, including www.sencha.com, +support.sencha.com, etc.
+(Optional) Specify true to indicate that the cookie +should only be accessible via SSL on a page using the HTTPS protocol. +Defaults to false. Note that this will only work if the page +calling this code uses the HTTPS protocol, otherwise the cookie will be +created with default options.
+