PHP 8.5.0 Alpha 1 available for testing

Voting

: five minus zero?
(Example: nine)

The Note You're Voting On

theking2(at)king.ma
1 year ago
As per version PHP 7 session_start can include an option array this function became obsolete. All cookie settings (and many more) can be included in an option array as a parameter to session_start():

<?php
session_start
( [
'cookie_path' => '/',
'cookie_lifetime' => 300,
'cookie_secure' => true,
'cookie_httponly' => true,
'cookie_samesite' => 'lax',
] );

<< Back to user notes page

To Top