session_status

(PHP 5 >= 5.4.0, PHP 7)

session_statusReturns the current session status

Descrierea

session_status ( void ) : int

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

Valorile întoarse

  • 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.

A se vedea și