Php Check If Session Is Running

[Solved] Php Check If Session Is Running | Php - Code Explorer | yomemimo.com
Question : check if session is started php

Answered by : -1vajs8k9qntw

if (session_status() == PHP_SESSION_NONE) { session_start();
}

Source : https://stackoverflow.com/questions/6249707/check-if-php-session-has-already-started | Last Update : Mon, 07 Dec 20

Question : php check if session is running

Answered by : francesco-bussolino

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

Source : | Last Update : Mon, 08 Mar 21

Answers related to php check if session is running

Code Explorer Popular Question For Php