protected function setSession()
    {
        $this->session = $this->getCurrentSession();

        // If there was no session found, create a new one instead
        if (!$this->session) {
            $session = MultiFormSession::create();
            $session->write();
            $this->session = $session;
        }
    }
protected function setSession()
    {
        $this->session = $this->getCurrentSession();

        // If there was no session found, create a new one instead
        if (!$this->session) {
            $session = MultiFormSession::create();
            $session->write();
            $this->session = $session;
        }
    }
protected function setSession ( ) { $ this -> session = $ this -> getCurrentSession ( ) ; // If there was no session found, create a new one instead if ( ! $ this -> session ) { $ session = MultiFormSession :: create ( ) ; $ session -> write ( ) ; $ this -> session = $ session ; } }
Set up the session.

If MultiFormSessionID isn't set, we assume that this is a new
multiform that requires a new session record to be created.

@TODO Fix the fact you can continually refresh and create new records
if MultiFormSessionID isn't set.

@TODO Not sure if we should bake the session stuff directly into MultiForm.
Perhaps it would be best dealt with on a separate class?
Set up the session .