Answers for "avoid session start php"

PHP
1

php start session if not started

if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
Posted by: Guest on November-30-2020
1

php close session

// save the Session and close it, 
// so the next request (with the same SessionID) can be processed parallel
session_write_close();
Posted by: Guest on November-04-2021

Browse Popular Code Answers by Language