Reviewed-By: Ramon Medeiros <ramonn(a)br.ibm.com>
On 08/02/2016 05:22 PM, peterpnns(a)gmail.com wrote:
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();
--
Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn(a)br.ibm.com