PHP 7 Session Options
From PHP7+, session_start() work function a array to override the session arrangement orders set in php.ini. These choices bolsters session.lazy_write, which is as a matter of course on and causes PHP to overwrite any session record if the session information has changed.
Another choice included is read_and_close, which demonstrates that the session information ought to be perused and afterward the session ought to promptly be shut unaltered. For instance, Set session.cache_limiter to private and set the banner to close the session following understanding it, utilizing the accompanying code snippet.
<?php session_start([ 'cache_limiter' => 'private', 'read_and_close' => true, ]); ?>