Session Timeout Variable

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

ccc_ar
Ebase User
Posts: 8
Joined: Wed Mar 20, 2013 9:25 am
Location: Carmarthen, UK
Contact:

Session Timeout Variable

#1

Postby ccc_ar » Fri Jun 14, 2013 11:04 am

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
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Fri Jun 14, 2013 3:43 pm

From a server side Javascript script, you can get the timeout period (in seconds) like this:

Code: Select all

var xx= client.httpSession.maxInactiveInterval;
To access this from html++, assign it to a form field (type INTEGER), then use && form field name in html++ e.g.:

Code: Select all

fields.TIMEOUT.value = client.httpSession.maxInactiveInterval;
then in html++..

Code: Select all

var timeout = &&TIMEOUT;
Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 24 guests