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
}
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #session #running
ADD COMMENT
Topic
Name
7+4 =