session_status

Returns the current session status

Description

int session_status()

session_status is used to return the current session status.

Parameters

This function has no parameters.

Return Values

  • 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