Answers for "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
0

session_regenerate_id

if(session_status() == PHP_SESSION_ACTIVE)
{
    session_regenerate_id();
}
Posted by: Guest on August-26-2021

Browse Popular Code Answers by Language