예제 #1
0
	/**
	 * logout the user from the session
	 */
	public function logout() {
		$this->manager->emit('\OC\User', 'logout');
		$this->setUser(null);
		$this->setLoginName(null);
		$this->unsetMagicInCookie();
		$this->session->clear();
	}
예제 #2
0
파일: session.php 프로젝트: evanjt/core
 public function testNotExistsAfterClear()
 {
     $this->instance->set('foo', 1);
     $this->instance->clear();
     $this->assertFalse($this->instance->exists('foo'));
 }