public function resetState($value = null)
    {
        if (!$value) {
            $value = md5(mt_rand(1, 1000000)
                . 'IAMTHEVERYMODELOFAMODERNMAJORGENERAL' //some salt
                . __CLASS__
                . mt_rand(1, 1000000)
            );
        }
        $value = (string) $value;

        $session = $this->_session;
        //$session->invalidate();  // @todo why were we invalidating the session?
        $session->set('linkedin_state', $value);

        return $this;
    }