Check whether session started using Predefined Constants
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
SID
(string)
"name=ID"
or empty string
if session ID was set in an appropriate session cookie. This is
the same id as the one returned by session_id().
PHP_SESSION_DISABLED
(int)
PHP_SESSION_NONE
(int)
PHP_SESSION_ACTIVE
(int)
Check whether session started using Predefined Constants
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant