Answers for "how to check if php session is working well"

PHP
0

php check if session is running

<?php
if(session_status() == PHP_SESSION_ACTIVE){
    //a session is already running
    session_destroy(); //stops the session
}
?>
Posted by: Guest on March-01-2021

Code answers related to "how to check if php session is working well"

Browse Popular Code Answers by Language