«

PHP:session_status()的用法

时间:2024-3-1 21:58     作者:韩俊     分类: PHP


session_status

(PHP >=5.4.0)

session_status — Returns the current session status

说明

int session_status
( void
)

session_status() is used to return the current session status.

返回值

PHP_SESSION_DISABLED if sessions are disabled. PHP_SESSION_NONE if sessions are enabled, but none exists. PHP_SESSION_ACTIVE if sessions are enabled, and one exists.

参见

session_start() - 启动新会话或者重用现有会话

标签: php php教程

热门推荐