Bluz\Session\Session::setNamespace PHP Method

setNamespace() public method

Set Namespace
public setNamespace ( string $namespace ) : Session
$namespace string
return Session
    public function setNamespace($namespace)
    {
        $this->namespace = $namespace;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->session = new Session();
     $this->session->setNamespace('testing');
     $this->session->start();
 }