Skip to content
A JS-based Cookie Reader and Writer
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
LICENSE
README.md
cookies.js

README.md

Cookies

Cookies is a JavaScript-based cookie analyzer and creator. It's purpose is to increase the efficiency of making cookies and reading them.

Install

To install, simply add this code to your tag:

  <script src="https://cdn.doamatto.xyz/cookies/latest.js"></script>

An example of Cookies would be:

<script>
	function cookieCheck() {
		var user=getCookie("cookiename");
		if(user != "") {
			alert("Welcome back, " + user);
		} else {
			user = prompt("Please enter your name:","");
			if(user != "" && user != null) {
				setCookie("cookiename", user, 30);
			}
		}
	}
</script>
You can’t perform that action at this time.