private function resume()
	{
		$this->debug->groupCollapsed(__METHOD__);
		if (isset($_SESSION)) {
			$this->user = ArrayUtil::pathGet($_SESSION, $this->cfg['sessionPath']);
		}
		/*
			Session?
		*/
		if (!empty($this->user)) {
			$this->debug->info('resuming from session');
			if (isset($this->user['_ts_cur'])) {
				$this->user['lastactivity'] = $this->user['_ts_cur'];
			}
			$this->userid = $this->user['userid'];
			$this->auth_via = 'session';
			$this->auth = 2;
			if ($this->user['lastactivity'] + $this->cfg['maxIdle'] < time()) {
				$this->debug->warn('idle');
				$this->debug->log('lastactivity', $this->user['lastactivity']);
				$this->auth = 0;
			} else {
				$this->update(array('lastactivity'=>'NOW()'));
			}
		}
		/*
			Persist cookie?
		*/
		if (empty($this->auth) && isset($_COOKIE[ $this->cfg['persistCookie']['name'] ])) {
			$persist_vals = Cookie::get($this->cfg['persistCookie']['name']);
			$userid = isset($persist_vals['username']) && isset($persist_vals['token'])
				? $this->verifyPersistToken($persist_vals['username'], $persist_vals['token'])	// drops from db if found
				: null;
			if ($userid) {
				$this->debug->info('resuming from persist token');
				$this->setCurrent($userid);
				$this->setPersistToken();
				$this->auth_via = 'cookie';
				$this->auth = 1;
			}
		}
		/*
			Social Cookie?
		*/
		if (empty($this->auth)) {
		}
		if (!empty($this->auth)) {
			$this->user['_ts_cur'] = time();
		}
		$this->debug->groupEnd();
	}