How can I access the session timeout variable from
a. An ebase script (javascript) and
b. Normal javascript script embedded in html++
Thank you for your help in advance
Session Timeout Variable
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 8
- Joined: Wed Mar 20, 2013 9:25 am
- Location: Carmarthen, UK
- Contact:
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
From a server side Javascript script, you can get the timeout period (in seconds) like this:
To access this from html++, assign it to a form field (type INTEGER), then use && form field name in html++ e.g.:
then in html++..
Regards
Jon
Code: Select all
var xx= client.httpSession.maxInactiveInterval;
Code: Select all
fields.TIMEOUT.value = client.httpSession.maxInactiveInterval;
Code: Select all
var timeout = &&TIMEOUT;
Jon
0 x
Who is online
Users browsing this forum: No registered users and 25 guests