About "Webservice_Session_Idle_Time" - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18) +--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4) +--- Thread: About "Webservice_Session_Idle_Time" (/showthread.php?tid=649) |
About "Webservice_Session_Idle_Time" - Guido1982 - 05-05-2017 About the GV called "Webservice_Session_Idle_Time":
I'm trying to set the limit to a large number, since some of the portal work I've created can take some time. But still sometimes it logs out after a short period. Could I maybe create a JS AJAX call that just does a simple call to keep the user logged in? RE: About "Webservice_Session_Idle_Time" - joebordes - 05-05-2017 Try this change and let me know if it is better: Code: diff --git a/include/Webservices/SessionManager.php b/include/Webservices/SessionManager.php RE: About "Webservice_Session_Idle_Time" - joebordes - 05-05-2017 the record should be assigned to the admin user after that change, all the rest does not matter RE: About "Webservice_Session_Idle_Time" - Guido1982 - 05-05-2017 I implemented the change (just copy/pasted the line) and running a test now in a test environment. I'll let you know. RE: About "Webservice_Session_Idle_Time" - Guido1982 - 05-24-2017 Unfortunately this doesn't seem to have an effect. I set the GV to a very hgh value but still the connection terminates after about ten minutes. RE: About "Webservice_Session_Idle_Time" - Guido1982 - 05-24-2017 I've created a small JS AJAX script that performs a very simple task (get the accountname for the first account) and set an interval of 5 minutes on this to see if this helps. RE: About "Webservice_Session_Idle_Time" - joebordes - 06-13-2017 I remember having looked at the session lifespan a long time ago (when it was still vtiger CRM) and making a mental note that the whole session management was incorrect, to the point where the session was never expired. So you can imagine my surprise to this discussion. I got around to testing it today and I think I can confirm that it definitely does not expire. I created a script that uses direct cURL calls to login. Then I get the sessionid and created another script to launch a query. I did this twice, once with the default value of 86400 and another with 60 in the maxLife global variable. Then I launched the query with no problem for over an hour. I shut down the laptop and turned it back on an hour later: both sessions were still valid and working. Obviously, we will have to look into this and get it fixed, but in the meantime, you should be able to do what you want to do. Here are the scripts: https://gist.github.com/joebordes/847c9ef7baa4ae035b04e4826177d270 let me now how it goes |