From: peterpennings <peterpnns(a)gmail.com>
Signed-off-by: peterpennings <peterpnns(a)gmail.com>
---
ui/js/src/wok.api.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/js/src/wok.api.js b/ui/js/src/wok.api.js
index e2829ab..2c3206c 100644
--- a/ui/js/src/wok.api.js
+++ b/ui/js/src/wok.api.js
@@ -43,6 +43,9 @@ var wok = {
settings['wok'] = true;
settings['complete'] = function(req) {
wok.session.remainingSessionTime =
req.getResponseHeader('Session-Expires-On');
+ if (wok.session.remainingSessionTime == null) {
+ wok.session.remainingSessionTime = 30;
+ }
wok.session.remainingSessionTime =
(parseInt(wok.session.remainingSessionTime, 10) * 1000);
if (!wok.session.flagInTimer) {
wok.session.refreshExpiringCounter();
--
2.5.0