Permalink
Browse files

Increase cookie timeout handling to 2 seconds, as Safari doesn't like…

… it to be just one second.
  • Loading branch information...
1 parent 602adb6 commit 38174b55683f1438249523c31acac1df4fb397e7 @dmitrig01 dmitrig01 committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/backbone.js
View
@@ -22,7 +22,7 @@ Backbone.csrf = function(path, timeout) {
path = path || '/';
path = path.split('#')[0].split('?')[0];
- var expires = new Date(+new Date + (timeout || 1000)).toGMTString();
+ var expires = new Date(+new Date + (timeout || 2000)).toGMTString();
document.cookie = 'bones.token=' + token
+ ';expires=' + expires
+ ';path=' + path + ';';

0 comments on commit 38174b5

Please sign in to comment.