GetSessions method is not meant to be used by developers, but if you want to use it here is the correct way: U:= UniServerModule.SessionManager.Sessions.GetSession(ClientDataSet1.FieldByName('sessionid').AsString, ClientDataSet1.FieldByName('ip').AsString); if Assigned(U) then try U.TerminateAfterSecs(3); finally UniServerModule.ClearSessionBusy(U); end;