session_status

(PHP >=5.4.0)
Returns the current session status
int session_status ( void )

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

Returns:
  • 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.
See also:

session_start() -

doc_php
2016-02-24 16:12:13
Comments
Leave a Comment

Please login to continue.