芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/Handler.php
client = $client; if (isset($options['gc_maxlifetime'])) { $this->ttl = (int) $options['gc_maxlifetime']; } else { $this->ttl = ini_get('session.gc_maxlifetime'); } } /** * Registers this instance as the current session handler. */ public function register() { session_set_save_handler($this, true); } /** * @param string $save_path * @param string $session_id * @return bool */ #[ReturnTypeWillChange] public function open($save_path, $session_id) { // NOOP return true; } /** * @return bool */ #[ReturnTypeWillChange] public function close() { // NOOP return true; } /** * @param int $maxlifetime * @return bool */ #[ReturnTypeWillChange] public function gc($maxlifetime) { // NOOP return true; } /** * @param string $session_id * @return string */ #[ReturnTypeWillChange] public function read($session_id) { if ($data = $this->client->get($session_id)) { return $data; } return ''; } /** * @param string $session_id * @param string $session_data * @return bool */ #[ReturnTypeWillChange] public function write($session_id, $session_data) { $this->client->setex($session_id, $this->ttl, $session_data); return true; } /** * @param string $session_id * @return bool */ #[ReturnTypeWillChange] public function destroy($session_id) { $this->client->del($session_id); return true; } /** * Returns the underlying client instance. * * @return ClientInterface */ public function getClient() { return $this->client; } /** * Returns the session max lifetime value. * * @return int */ public function getMaxLifeTime() { return $this->ttl; } }