Ario.Paxaz Posted September 17, 2017 Share Posted September 17, 2017 Hi I Lock the IP that 3 time enter wrong password in login form by below code. if PassMiss=3 then Begin IPAddress:=UniApplication.RemoteAddress; UniServerModule.SessionTimeout:=1000; UniServerModule.BlockedIPList.Add(IPAddress); Exit End; But after this ,all user after login into web application ,they automatically back into login form. notice that i use SSL certification. Best Regards. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 17, 2017 Administrators Share Posted September 17, 2017 This will change SessionTimeout for ALL session and should never be called inside a session: UniServerModule.SessionTimeout:=1000; You must lock servermodule before modifying it inside a session: UniServerModule.Lock; try UniServerModule.BlockedIPList.Add(IPAddress); finally UniServerModule.UnLock; end; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 17, 2017 Administrators Share Posted September 17, 2017 ,all user after login into web application ,they automatically back into login form Yes, because you have set SessionTimeout to 1 second. 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.