Importer/Importer.php
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;
    }
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;
    }
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 ; }
Reinitializes the value of linkedin_state in the session
@param  string                                        $value
@return \CCC\LinkedinImporterBundle\Importer\Importer
Reinitializes the value of linkedin_state in the session