php check if session is running code example
Example: php check if session is running
<?php
if(session_status() == PHP_SESSION_ACTIVE){
//a session is already running
session_destroy(); //stops the session
}
?>
<?php
if(session_status() == PHP_SESSION_ACTIVE){
//a session is already running
session_destroy(); //stops the session
}
?>