Uncategorized

Scotch 📚📱💻🖥 created 

happy Friday world 💻🚀📱🖥🎼💥🔥🌹🇲🇦😊

Getting started

Note

No jQuery needed.

Installation

Direct download

/path/to/js.cookiet.min.js
Source Download

$ git clone git@github.com:akinjide/cookiet.git
Once you have cookiet, you can use it to easily create a cookie by providing

create

Create a cookie, valid across the entire site, that expires 30 days from now.

cookiet.create({
name: ‘hello’, // name
value: ‘world’, // value
expire: 30, // expires 30 days from creation date
path: ‘/’, // path for the website. ‘/’ for the whole website. <Optional>
domain: ‘helloworld.com’, // Locked to which domain <Optional>
secure: true, // Use SSL, for website with SSL Certificate <Optional>
httpOnly: false // Use httpOnly flag <Optional>
});
Note:

(Optional) domain = ex: domain.com. If not set, it would be available for all subdomains.
(Optional) secure = Use SSL while transferring cookie to server
(Optional) httpOnly – Using the HttpOnly flag when generating a cookie helps mitigate the risk of client side script accessing…

View original post 311 more words

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s