From 2a8c57f95479679ae8c9f3064b519e0a054ee87a Mon Sep 17 00:00:00 2001 From: fefa4ka Date: Tue, 9 Feb 2016 10:48:44 +0300 Subject: [PATCH] set cookie path=/ --- zsite/static/js/snippets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsite/static/js/snippets.js b/zsite/static/js/snippets.js index 38f729a..4ee1fd2 100644 --- a/zsite/static/js/snippets.js +++ b/zsite/static/js/snippets.js @@ -25,7 +25,7 @@ GetAdj = function(number, one, two) { setCookie = function(key, value) { var expires = new Date(); expires.setTime(expires.getTime() + (1 * 24 * 60 * 60 * 1000)); - document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); + document.cookie = key + '=' + value + ';expires=' + expires.toUTCString() + ';path=/'; }; $(function() {