Answers for "how to check session start in php"

PHP
1

check if session is started php

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

session start php

<?php
// This sends a persistent cookie that lasts a day.
session_start([
    'cookie_lifetime' => 86400,
]);
?>
Posted by: Guest on April-17-2020

Code answers related to "how to check session start in php"

Browse Popular Code Answers by Language