protected function startSession(WebRequest $request)
    {
        // Save the nonce base on the session
        $request->setSessionData('nonceBase', md5(uniqid()));
        
        // Save the ip address on the session
        $request->setSessionData('ipAddress', $_SERVER['REMOTE_ADDR']);
        
        // Save the user agent on the session
        if (isset($_SERVER['HTTP_USER_AGENT'])) {
            $request->setSessionData('userAgent', $_SERVER['HTTP_USER_AGENT']);
        }
        
        // Save the boolean that we started the session
        $request->setSessionData('sessionStarted', true);
    }