Question : how to start a session
Answered by : debugdefrontpage
<?php
session_start(); //starts session
session_unset(); // remove all session variables
session_destroy(); // destroy the session
?>
Source : | Last Update : Thu, 09 Sep 21
Question : create session in php
Answered by : ankur-prajapati
<?php // Start the session session_start(); // Set session variables $_SESSION["color"]= "blue"; $_SESSION["animal"]= "dog"; echo "The session variable are set up.";
?>
Source : | Last Update : Tue, 23 Jun 20
Question : session start php
Answered by : foolish-ferret-88jbjo03lpjz
<?php
// This sends a persistent cookie that lasts a day.
session_start([
'cookie_lifetime' => 86400,
]);
?>
Source : https://www.php.net/manual/en/function.session-start.php | Last Update : Fri, 24 Apr 20