MCP PHP SDK

SessionManagerInterface

Factory interface for creating session instances.

This allows for different session implementations and custom initialization logic.

Tags
author

Kyrian Obikwelu koshnawaza@gmail.com

Table of Contents

Methods

create()  : SessionInterface
Creates a new session with an auto-generated UUID.
createWithId()  : SessionInterface
Creates a session with a specific UUID.
destroy()  : bool
Destroys the session with the given UUID.
exists()  : bool
Checks if a session with the given UUID exists.
gc()  : void

Methods

destroy()

Destroys the session with the given UUID.

public destroy(Uuid $id) : bool
Parameters
$id : Uuid
Return values
bool

exists()

Checks if a session with the given UUID exists.

public exists(Uuid $id) : bool
Parameters
$id : Uuid
Return values
bool

        
On this page

Search results