Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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 />";
?>
Source by www.phptutorial.info #
 
PREVIOUS NEXT
Tagged: #php #session #regenerate #id
ADD COMMENT
Topic
Name
4+1 =