예제 #1
0
	/**
	 * set the login name
	 *
	 * @param string|null $loginName for the logged in user
	 */
	public function setLoginName($loginName) {
		if (is_null($loginName)) {
			$this->session->remove('loginname');
		} else {
			$this->session->set('loginname', $loginName);
		}
	}
예제 #2
0
파일: session.php 프로젝트: evanjt/core
 public function testRemoveNonExisting()
 {
     $this->assertFalse($this->instance->exists('foo'));
     $this->instance->remove('foo');
     $this->assertFalse($this->instance->exists('foo'));
 }