i try to set an idle session timeout on our document server.
So, i set "sessionidle" param from default.json file.
But it's doesn't work, the session are still active even after the session idle time.
all i have is this log message :
- Code: Select all
[2017-03-02 10:32:00.771] [INFO] nodeJS - data.type = extendSession id = HMbOYTWshVV_yk9XuCQ_
after some investigation, i found something strange in the Document Server sdkjs :
in the apiBase.js line 597 (https://github.com/ONLYOFFICE/sdkjs/blo ... se.js#L597), i don't understand the code below especially how the idletime is calculated.
- Code: Select all
if (c_oCloseCode.sessionIdle == code) {
var lastTime = new Date().getTime();
var idleTime = new Date().getTime() - lastTime;
if (idleTime < interval) {
t.CoAuthoringApi.extendSession(idleTime);
} else {
extendSession = false;
}
For me, idletime will always have the value 0, so the session will never end. Am i right ?
Thanks for your help,
Yoann