cristianotestai Posted July 4, 2011 Share Posted July 4, 2011 Hello Farshad, I have some initial questions about management of the session: 1) If I close the browser page the session remains active. How to proceed in this case? The session should be terminated, or i'm wrong? 2) If I press F5, the application is loaded again and a new session is created. Is this correct? Each F5 a new session is created, without finishing the previous. 3) When a session is finished I would go back to my login page, which is the home page of the application, how should I proceed? I tried putting the code in TerminateTemplates property, but it tries to load, and occurs the error that session was terminated. How to solve this problem? Tks for help! Ps: MainFormDisplayMode = mfPage Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 4, 2011 Administrators Share Posted July 4, 2011 Hello Farshad, I have some initial questions about management of the session: 1) If I close the browser page the session remains active. How to proceed in this case? The session should be terminated, or i'm wrong? Session remains active and automatically terminated after session timeout duration is passed which is 10 minutes by default. 2) If I press F5, the application is loaded again and a new session is created. Is this correct? Each F5 a new session is created, without finishing the previous. Yes, the old session remains active and terminated after timeout period. 3) When a session is finished I would go back to my login page, which is the home page of the application, how should I proceed? We have issue #855 for this. We will add an event for monitoring session timeouts. You can restart app which will redirect user to login screen. Use below code for InvalidSessionTemplate: <html> <script> document.location="[###url###]"; </script> </html> Quote Link to comment Share on other sites More sharing options...
wrt54gs Posted March 19, 2014 Share Posted March 19, 2014 useful topic. mark it. current has session type option , but not test it work or not? thanks. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 19, 2014 Share Posted March 19, 2014 edit Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2014 Administrators Share Posted March 19, 2014 ServerModule->ServerLimits->SessionRestrict = [srNone, srOnePerIP, srOnePerPC] srOnePerIP = Allow only one session per IP address srOnePerPC = Allow one session per Browser (Tracked by a cookie) Quote Link to comment Share on other sites More sharing options...
wrt54gs Posted March 19, 2014 Share Posted March 19, 2014 ServerModule->ServerLimits->SessionRestrict = [srNone, srOnePerIP, srOnePerPC] srOnePerIP = Allow only one session per IP address srOnePerPC = Allow one session per Browser (Tracked by a cookie) That's exactly what I talked about. But I never test it. These days, I just quickly browse the UNIGUI functionality provided, I hope the draft architecture for future project will be come out after that. UNIGUI is quite amazing product. Great job! Farshad! Also thanks Hayri. 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.