Sesja PHP została utworzona przez session_start ()
if ( !session_id() ) {
session_start( [
'read_and_close' => true,
] );
}
Strange Sloth
if ( !session_id() ) {
session_start( [
'read_and_close' => true,
] );
}
<?php
// This sends a persistent cookie that lasts a day.
session_start([
'cookie_lifetime' => 86400,
]);
?>