Question : php start session if not started
Answered by : -1vajs8k9qntw
if (session_status() == PHP_SESSION_NONE) { session_start();
}
Source : https://stackoverflow.com/questions/6249707/check-if-php-session-has-already-started | Last Update : Mon, 07 Dec 20
Question : php check if session is running
Answered by : francesco-bussolino
<?php
if(session_status() == PHP_SESSION_ACTIVE){ //a session is already running session_destroy(); //stops the session
}
?>
Source : | Last Update : Mon, 08 Mar 21
Question : php start session if not started
Answered by : -1vajs8k9qntw
#you could just ignore warnings messages
@session_start();
Source : | Last Update : Mon, 07 Dec 20
Question : check if session is started
Answered by : pedro-c914jbp93vvw
if (session_status() === PHP_SESSION_NONE) { session_start();
}
Source : https://stackoverflow.com/questions/6249707/check-if-php-session-has-already-started | Last Update : Sat, 08 Oct 22