Bug #2074 ยป boot_js_in_one_second_fix_20130730a.diff
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_$_();
|
||