aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-10-26 12:57:37 +0000
committerOlivier Lamy <olamy@apache.org>2012-10-26 12:57:37 +0000
commitb5a929fd577a1a01ad9d35ea89325c6b5f93ab32 (patch)
tree0db036459a88b3a6dc772a6eb0015972e441b66b /archiva-modules
parent9a77a9926c9e08123ab3aa7b0ee8a1618011e614 (diff)
downloadarchiva-b5a929fd577a1a01ad9d35ea89325c6b5f93ab32.tar.gz
archiva-b5a929fd577a1a01ad9d35ea89325c6b5f93ab32.zip
7 days expiration for the cookie
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1402489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
index db2ea752e..1b8793662 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
@@ -28,7 +28,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
* @param user see user.js
*/
reccordLoginCookie=function(user) {
- $.cookie('archiva_login', ko.toJSON(user));
+ $.cookie('archiva_login', ko.toJSON(user),{ expires: 7, path: '/' });
};
getUserFromLoginCookie=function(){
@@ -38,7 +38,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
};
deleteLoginCookie=function(){
- $.cookie('archiva_login', null);
+ $.cookie('archiva_login', null,{ expires: 7, path: '/' });
};
logout=function(doScreenChange){