GoLang session_status

request it (332)
GoLang replacement for PHP's session_status [edit | history]



Do you know a GoLang replacement for PHP's session_status? Write it!

PHP session_status

PHP original manual for session_status [ show | php.net ]

session_status

(PHP 5 >= 5.4.0, PHP 7)

session_statusReturns the current session status

Description

int session_status ( void )

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

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