https://github.com/apsdehal/jcookie
https://github.com/apsdehal/jcookie
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apsdehal/jcookie
- Owner: apsdehal
- License: mit
- Created: 2014-02-06T11:20:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T13:30:39.000Z (over 12 years ago)
- Last Synced: 2024-12-31T08:25:44.886Z (over 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
##jQuery Cookie Plugin
Simplified Javascript Cookie creation
###About
Plugin to create, read and delete cookies in javascript with ease.
###Usage
```html
```
$.cookie global variable contains all the method to set, read and delete cookies.
```javascript
$.cookie.create( name, value, options );
/* Function to create cookie with provided name and value
options: Object to be passed with extra value of duration (value to be given in days), path, secure
For e.g. {duration: 4, path: '/', domain: 'github.com', secure: ''} Defaults are {duration: '', path:'/',domain: '', secure:''}
*/
$.cookie.get( name );
//Method to get the value set in cookie with key = name
$.cookie.erase( name );
//Method to erase cookies with key = name
```