Session_Start () создал сеанс PHP ()
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,
]);
?>