[Tynstep-svn] r218 - trunk/step/step-web/src/main/webapp/libs/cookies

ChrisBurrell at crosswire.org ChrisBurrell at crosswire.org
Sun Mar 6 14:17:37 MST 2011


Author: ChrisBurrell
Date: 2011-03-06 14:17:37 -0700 (Sun, 06 Mar 2011)
New Revision: 218

Modified:
   trunk/step/step-web/src/main/webapp/libs/cookies/jquery_cookie.js
Log:
change to ensure cookie doesn't expire during session

Modified: trunk/step/step-web/src/main/webapp/libs/cookies/jquery_cookie.js
===================================================================
--- trunk/step/step-web/src/main/webapp/libs/cookies/jquery_cookie.js	2011-03-06 21:00:24 UTC (rev 217)
+++ trunk/step/step-web/src/main/webapp/libs/cookies/jquery_cookie.js	2011-03-06 21:17:37 UTC (rev 218)
@@ -1,4 +1,6 @@
 /**
+ * THIS HAS BEEN MODIFIED BY CJB TO ENSURE DEFAULT OPTION IS TO REMAIN FOR 90 days
+ * 
  * Cookie plugin
  *
  * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
@@ -61,6 +63,10 @@
             options.expires = -1;
         }
         var expires = '';
+        if(!options.expires) {
+        	options.expires = 90;
+        }
+        
         if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
             var date;
             if (typeof options.expires == 'number') {




More information about the Tynstep-svn mailing list