Пример #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
 public function testNotExistsAfterClear()
 {
     $this->instance->set('foo', 1);
     $this->instance->clear();
     $this->assertFalse($this->instance->exists('foo'));
 }