Answers for "php check if session is started"

PHP
0

restart rabbitmq service linux

sudo service rabbitmq-server restart
Posted by: Guest on July-21-2020
0

php start session if not started

if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
Posted by: Guest on November-30-2020
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
0

php start session if not started

#you could just ignore warnings messages
@session_start();
Posted by: Guest on November-30-2020

Code answers related to "php check if session is started"

Browse Popular Code Answers by Language