public function setDefaultSessionName($name)
    {
        $name = strtolower($name);

        if (!isset($this->sessions[$name])) {
            throw new \InvalidArgumentException(sprintf('Session "%s" is not registered.', $name));
        }

        $this->defaultSessionName = $name;
    }
public function setDefaultSessionName($name)
    {
        $name = strtolower($name);

        if (!isset($this->sessions[$name])) {
            throw new \InvalidArgumentException(sprintf('Session "%s" is not registered.', $name));
        }

        $this->defaultSessionName = $name;
    }
public function setDefaultSessionName ( $ name ) { $ name = strtolower ( $ name ) ; if ( ! isset ( $ this -> sessions [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Session "%s" is not registered.' , $ name ) ) ; } $ this -> defaultSessionName = $ name ; }
Sets default session name to use.

@param string $name name of the registered session

@throws \InvalidArgumentException
Sets default session name to use .