sessionHandler = $sessionHandler; } /** * Open a session for writing. Triggered by session_start() * * Part of the standard PHP session handler interface * * @param string $savePath Session save path * @param string $name Session name * * @return bool Whether or not the operation succeeded */ public function open($savePath, $name) { return $this->sessionHandler->open($savePath, $name); } /** * Close a session * * Part of the standard PHP session handler interface * * @return bool Whether or not the operation succeeded */ public function close() { return $this->sessionHandler->close(); } /** * Read session data stored in DynamoDB * * Part of the standard PHP session handler interface * * @param string $id The session ID * * @return string Session data */ public function read($id) { return $this->sessionHandler->read($id); } /** * Write session data to DynamoDB * * Part of the standard PHP session handler interface * * @param string $id The session ID * @param string $data The serialized session data * * @return bool Whether or not the operation succeeded */ public function write($id, $data) { return $this->sessionHandler->write($id, $data); } /** * Destroy a session stored in DynamoDB * * Part of the standard PHP session handler interface * * @param string $id The session ID * * @return bool Whether or not the operation succeeded */ public function destroy($id) { return $this->sessionHandler->destroy($id); } /** * Trigger garbage collection on expired sessions * * Part of the standard PHP session handler interface * * @param int $maxlifetime The value of `session.gc_maxlifetime`. Ignored. * * @return bool Whether or not the operation succeeded */ public function gc($maxlifetime) { return $this->sessionHandler->gc($maxlifetime); } }