编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « SessionHandlerInterface::close
  • SessionHandlerInterface::gc »
  • PHP Manual
  • SessionHandlerInterface
  • Destroy a session

SessionHandlerInterface::destroy

(PHP 5 >= 5.4.0, PHP 7)

SessionHandlerInterface::destroy — Destroy a session

说明

abstract public SessionHandlerInterface::destroy ( string $session_id ) : bool

Destroys a session. Called by session_regenerate_id() (with $destroy = TRUE), session_destroy() and when session_decode() fails.

参数

session_id

The session ID being destroyed.

返回值

会话存储的返回值(通常成功返回 0,失败返回 1)。

相关文章
php libevent 函数 destroy buffered eventphp mcve 函数 destroy the connection and mcve conn structurephp msession 函数 destroy a sessionphp msession 函数 get value from sessionphp semaphore 函数 destroy a message queuephp posix 函数 make the current process a session leaderphp session 函数 解码会话数据php session 函数 关闭会话php gmagick the destroy purposephp mysql xdevapi session release set savepointphp sessionhandler destroy a sessionphp sessionhandlerinterface close the sessionphp sessionhandlerinterface destroy a sessionphp sessionhandlerinterface initialize sessionphp sessionhandlerinterface read session dataphp sessionhandlerinterface write session dataphp yaf session the clone purposephp yaf session the construct purposephp yaf session the set purposephp yaf session the sleep purpose
关注编程学问公众号
编程学问网 湘ICP备20001732号