We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a nice way to do cookies, but I need to set the domain explicitly sometimes:
diff --git a/lib/monster.js b/lib/monster.js index daae4c6..c6d61e6 100644 --- a/lib/monster.js +++ b/lib/monster.js @@ -1,10 +1,11 @@ var monster = {
The text was updated successfully, but these errors were encountered:
please submit a pull request with tests and I'll accept it.
Sorry, something went wrong.
No branches or pull requests
This is a nice way to do cookies, but I need to set the domain explicitly sometimes:
diff --git a/lib/monster.js b/lib/monster.js
index daae4c6..c6d61e6 100644
--- a/lib/monster.js
+++ b/lib/monster.js
@@ -1,10 +1,11 @@
var monster = {
var date = new Date(),
expires = '',
type = typeof(value),
valueToUse = '';
path = path || "/";
if (days) {
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toGMTString();
@@ -16,7 +17,8 @@ var monster = {
else
valueToUse = escape(value);
},
get: function(name) {
var nameEQ = name + "=",
The text was updated successfully, but these errors were encountered: