Skip to content

SessionStore ​

Type
Class
Namespace
craft\mcp
Inherits
craft\mcp\SessionStore
Implements
Mcp\Server\Session\SessionStoreInterface

Persists HTTP MCP sessions in Craft's configured cache.

@since 5.12.0

View source

Public Methods ​

MethodDescription
__construct()
destroy()
exists()
gc()
read()
write()

__construct() ​

View source

Arguments ​

  • $cache
  • $scope

destroy() ​

View source

Arguments ​

  • $id

exists() ​

View source

Arguments ​

  • $id

gc() ​

View source

read() ​

View source

Arguments ​

  • $id

write() ​

View source

Arguments ​

  • $id
  • $data