Answers for "how to regenerate session id when session expires in php"

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 "how to regenerate session id when session expires in php"

Browse Popular Code Answers by Language