rsanford Posted January 2, 2013 Share Posted January 2, 2013 I inquired about this a while back and at the time could not find a solution. I need to be able to logout/ terminate a user session after it has been inactive for a given amount of time..ie. 5 minutes. Has anyone been able to achieve this? Thank you! Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 3, 2013 Share Posted January 3, 2013 I also searching for such solution, to be automatic :-) Quote Link to comment Share on other sites More sharing options...
mhmda Posted January 3, 2013 Share Posted January 3, 2013 Hi, I manage to do it... 1. create a .js file with this content: var sessionTimeout = 11;//in seconds var sesioncounter = 11; function DisplaySessionTimeout() { sesioncounter = sesioncounter - 1; if (sesioncounter >= 0) { window.setTimeout("DisplaySessionTimeout()", 1000); } else { sesioncounter=sessionTimeout; window.location = "http://www.google.com";//in timeout redirect to google } } DisplaySessionTimeout(); 2. attach the file to "servermodule": 3. add this code to every form (ClientEvents--> UniEvents --> OnAjaxRequest): That is it... give it a try Maybe there is more efficient way, but for now it's working good for me... 1 Quote Link to comment Share on other sites More sharing options...
mmx110 Posted July 16, 2016 Share Posted July 16, 2016 Hi mohammad! please write down here what script should be add to OnAjaxRequest? posted images are not visible... Thanks and Regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.