Answers for "php how to check if session is started"

PHP
2

install shutil

pip install pytest-shutil
Posted by: Guest on February-04-2021
0

php start session if not started

if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
Posted by: Guest on November-30-2020
0

php start session if not started

#you could just ignore warnings messages
@session_start();
Posted by: Guest on November-30-2020
0

php check session status

session_status();

// Possible results:
//  - PHP_SESSION_DISABLED = 0
//  - PHP_SESSION_NONE     = 1
//  - PHP_SESSION_ACTIVE   = 2
Posted by: Guest on July-07-2020

Code answers related to "php how to check if session is started"

Browse Popular Code Answers by Language