Package: | Ext.util |
Defined In: | Cookies.js |
Class: | Cookies |
Extends: | Object |
Method | Defined By | |
---|---|---|
clear( String name )
:
voidRemoves a cookie with the provided name from the browser
if found by setting its expiration date to sometime in the p... Removes a cookie with the provided name from the browser
if found by setting its expiration date to sometime in the past. Parameters:
| Cookies | |
get( String name )
:
MixedRetrieves cookies that are accessible by the current page. If a cookie
does not exist, get() returns null. The follo... 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.
Parameters:
| 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 (fo... 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:
| Cookies |