Answers for "when should i use the session_regenerate id"

PHP
0

php session regenerate id

<?php
session_start();

$old_sessionid = session_id();

session_regenerate_id();

$new_sessionid = session_id();

echo "Old Session: $old_sessionid<br />";
echo "New Session: $new_sessionid<br />";
?>
Posted by: Guest on May-05-2020

Code answers related to "when should i use the session_regenerate id"

Browse Popular Code Answers by Language