updateSessionId example

Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND,
                    $this->_identity,
                    []
                );
            }

            $this->session->migrate(true);

            $this->setSessionId($this->session->getId());

            $this->updateExpiry();
            $this->updateSessionId();

            // Reset failed login count             $this->setFailedLogins(0);
        } elseif ($user) {
            // If more than 4 previous failed logins lock account for n * failedlogins seconds             if ($user->failedlogins >= 4) {
                $lockedUntil = new Zend_Date();
                $lockedUntil->addSecond($this->lockSeconds * $user->failedlogins);
                $this->setLockedUntil($lockedUntil);
            }
            // Increase number of failed logins

    public function authenticate()
    {
        $result = parent::authenticate();

        if ($result->isValid()) {
            $this->updateExpiry();
            $this->updateSessionId();
        }

        return $result;
    }

    /** * Refresh the authentication. * * Checks the expiry date and the identity. * * @return Zend_Auth_Result */
Home | Imprint | This part of the site doesn't use cookies.