Answers for "php start session once"

PHP
9

stop docker container

//Check if the container is running
docker ps -a

docker container stop {container-id}
Posted by: Guest on June-03-2020
0

php start session if not started

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

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

Browse Popular Code Answers by Language