Project

General

Profile

Bug #2074 ยป boot_js_in_one_second_fix_20130730a.diff

Bruce Toll, 07/31/2013 03:03 AM

View differences:

src/web/skeleton/Boot.js
var ajax = (win.XMLHttpRequest || win.ActiveXObject);
var no_replace = _$_RELOAD_IS_NEWSESSION_$_;
var inOneSecond = new Date();
inOneSecond.setTime(inOneSecond.getTime() + 1000);
_$_$if_COOKIE_CHECKS_$_();
// client-side cookie support
var testcookie='jscookietest=valid';
......
doc.cookie=testcookie+';expires=Thu, 01 Jan 1970 00:00:00 GMT';
// server-side cookie support
var inOneSecond = new Date();
inOneSecond.setTime(inOneSecond.getTime() + 1000);
doc.cookie='WtTestCookie=ok;path=/;expires=' + inOneSecond.toGMTString();
_$_$endif_$_();
    (1-1/1)