Jump to content

Recommended Posts

Posted

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.

  • Administrators
Posted

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;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...