protected function verifySession()
    {
        // Get the session.
        $session = $this->getSession();

        // Start the session if needed.
        if (! $session->isStarted()) {
            $session->start();
        }

        // If we aren't on a valid page
        if ('about:blank' === $session->getCurrentUrl()) {
            // Go to the home page
            $session->visit('/');
        }

        // Return the session.
        return $session;
    }