archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1402489 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
Date Fri, 26 Oct 2012 12:57:37 GMT
Author: olamy
Date: Fri Oct 26 12:57:37 2012
New Revision: 1402489

URL: http://svn.apache.org/viewvc?rev=1402489&view=rev
Log:
7 days expiration for the cookie

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js?rev=1402489&r1=1402488&r2=1402489&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
Fri Oct 26 12:57:37 2012
@@ -28,7 +28,7 @@ function(jquery,ui,sammy,tmpl,i18n,jquer
    * @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,jquer
   };
 
   deleteLoginCookie=function(){
-    $.cookie('archiva_login', null);
+    $.cookie('archiva_login', null,{ expires: 7, path: '/' });
   };
 
   logout=function(doScreenChange){



Mime
View raw message