[Kimchi-devel] [PATCH] [Wok] Wok BugFix - session message appearing on login
peterpnns at gmail.com
peterpnns at gmail.com
Tue Aug 2 20:22:39 UTC 2016
From: peterpennings <peterpnns at gmail.com>
Signed-off-by: peterpennings <peterpnns at 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
More information about the Kimchi-devel
mailing list