protected void LogOutUser(IHttpRequest request)
        {
            IHttpSession session = GetCurrentSession(request);

            if (session.ContainsParameter(userInfo))
            {
                session.ClearParameters();
                return;
            }
            throw new InvalidOperationException($"There is no loged in user at the moment!");
        }