count connection attempts and limit recursive session requests