Check Session Php

[Solved] Check Session Php | Php - Code Explorer | yomemimo.com
Question : check session php

Answered by : munyira-samson

// For PHP versions > 5.4.0
if (session_status() === PHP_SESSION_NONE) { session_start();
}
// For PHP Versions < 5.4.0
if(session_id() == '') { session_start();
}

Source : https://stackoverflow.com/questions/6249707/check-if-php-session-has-already-started | Last Update : Tue, 16 Mar 21

Answers related to check session php

Code Explorer Popular Question For Php