# Documentation v8.0.38

Preview Downloads Purchase

# Overview

Cookie is an exclusive component of Metronic that provides a simple integrated way to manage cookies via Javascript. For more info on cookies, please visit: https://javascript.info/cookie

# Usage

Cookie's Javascript bundles are globally included in all pages. However, custom cookie management will require additional JS to be included.

    <script src="assets/js/scripts.bundle.js"></script>

# Initialization

- Cookie is globally initialized and can be controlled via our custom `get`, `set`and `remove`API methods.
- Cookie instances can also be controlled programmatically. See below for more info.

# Methods

All Cookie components are initialized automatically, however the following are Cookie's API functionality methods for more control.

Name | Description
--- | ---
`set(name, value, options)` | Create a new Cookie with specified `name`, `value`and `options`
    var date = new Date(Date.now() + 2 * 24 * 60 * 60 * 1000); // +2 day from now
    var options = { expires: date };
    KTCookie.set("user_logged_in", "yes", options);
`get(name)` | Returns the selected cookie if applicable.
    KTCookie.get("user_logged_in");
`remove(name)` | Destroys the selected cookie.
    KTCookie.remove("user_logged_in");

### Explore

### Metronic Licenses

License FAQs
Regular License
For single end product used by you or one client
$ 39
Extended License
For single SaaS app with paying users
$ 969
Custom License
Reach us for custom license offers.
Contact Us
Buy Now

### Metronic Demos

Demo 1
Demo 2
Demo 3
Demo 4
Demo 5
Demo 6
Demo 7
Demo 8
Demo 9
Demo 10
Demo 11
Demo 12
Demo 13
Demo 14
Demo 15
Demo 16
Demo 17
Demo 18
Demo 19
Demo 20
Demo 21
Demo 22
Coming soon
Coming soon

##### Learn & Get Inspired

## Support at devs.keenthemes.com

Join our developers community to find answer to your question and help others. FAQs
Get Support
Documentation & Videos
From guides and video tutorials, to live demos and code examples to get started.
Plugins & Components
Check out our 300+ in-house components and customized 3rd-party plugins.
Layout Builder
Build your layout, preview it and export the HTML for server side integration.
Metronic Downloads
Download your prefered framework and demo with one click.
What's New
Latest features and improvements added with our users feedback in mind.
Buy now