Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if session is running

<?php
if(session_status() == PHP_SESSION_ACTIVE){
    //a session is already running
    session_destroy(); //stops the session
}
?>
 
PREVIOUS NEXT
Tagged: #php #check #session #running
ADD COMMENT
Topic
Name
2+5 =