WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML


 

PHP 7 Session Options




session_start() function accepts an array of options to override the session configuration directives set in php.ini.


read_and_close, which indicates that the session data should be read and then the session should immediately be closed unchanged.





Example

<?php
   session_start([
      'cache_limiter' => 'private',
      'read_and_close' => true,
   ]);
?>