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 : start php session
Answered by : jareer
<?php
session_start();
?>
Source : | Last Update : Sat, 12 Feb 22
Question : a php session was created by a session_start()
Answered by : strange-sloth-a93rdaittw3e
if ( !session_id() ) { session_start( [ 'read_and_close' => true, ] );
}
Source : https://stackoverflow.com/questions/64377032/getting-an-active-php-session-was-detected-critical-warning-in-wordpress | Last Update : Wed, 04 Aug 21
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