示例#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'));
 }