PHP 8.5.0 Alpha 2 available for testing

Voting

: one plus six?
(Example: nine)

The Note You're Voting On

antomsa at hotmail dot it
3 years ago
<?php

function my_session_regenerate_id() {
...
session_start();
...

unset(
$_SESSION['destroyed']);
unset(
$_SESSION['new_session_id']);
}

?>

Within my_session_regenerate_id(), unset($_SESSION['destroyed']) and
unset($_SESSION['new_session_id']) are useless because session_start() will open an empty session. They would be needed if built-in session_regenerate_id() was called.

<< Back to user notes page

To Top