Ario.Paxaz Posted April 18, 2020 Share Posted April 18, 2020 Hi I set SessionRestrict=srOnePerPC , But any user can open my application by two or more tab. How to can control it? How to close a user's session after a certain hour that did not work with the application? Regards. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted April 18, 2020 Share Posted April 18, 2020 UniServerModule.TimeOutSession ? if session not closed, that mean you have something like an uniTimer in your mainForm wich maintains the session. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 18, 2020 Administrators Share Posted April 18, 2020 34 minutes ago, A.Soltani said: Hi I set SessionRestrict=srOnePerPC , But any user can open my application by two or more tab. How to can control it? How to close a user's session after a certain hour that did not work with the application? Regards. Is your app running on HyperServer? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 18, 2020 Administrators Share Posted April 18, 2020 OnePerPC is actually one per browser. It is tracked by cookies, so a user can open same app using different browsers, but not in same browser. You can use OnePerIP for more restrict control. Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted April 18, 2020 Author Share Posted April 18, 2020 Quote Is your app running on HyperServer? No. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted April 22, 2020 Share Posted April 22, 2020 On 4/18/2020 at 9:36 AM, A.Soltani said: How to close a user's session after a certain hour that did not work with the application? Hi, Resume : ServerModule > SessionTimeOut is enough for closing a session. If the sessions could'nt close, that mean two possibilities : - an UniTimer is working on the MainForm - or Your MainModule has an extendTimeOut procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject; var ExtendTimeOut: Integer); begin ExtendTimeOut:=60000; // This will extend the Session for an other 60 sec end; // See Demo : C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\SessionTimeout 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.