Article
What is a cookie ?
https://cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js
Copy to clipboard
A cookie is a text file containing user preferences that is stored in an end user’s computer by a website. It allows the website to remember information across pages in the site.
This information may include login details, user preferences for the site, user purchases etc.
Cookies may be persistent, which means they are active for multiple site visits.
We can also have cookies that are active for a single visit of a webpage. We can have secure cookies that work only on secure web pages.
Third party cookies are cookies that belong to other sites and are usually used by advertisement companies to track a user's browsing history etc.
<script>
$(document).ready(function(){
XT1
});
</script>
$(document).ready(function(){
XT1
});
</script>
Copy to clipboard
Live demo
<script>
$(document).ready(function() {
XT1
});
</script>
$(document).ready(function() {
XT1
});
</script>
Copy to clipboard
Press the Run Demo button to execute the scripts above.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.