session_start

PHP 4, PHP 5, PHP 7, PHP 8
session_start - Start new or resume existing session
Manual
Code Examples

Example #1 <span class='function-filename'>page1.php</span>

PHP Version:

Example #2 <span class='function-filename'>page2.php</span>

PHP Version:

Example #3 Overriding the cookie lifetime

PHP Version:

Example #4 Reading the session and closing it

PHP Version: