php session regenerate id

Solutions on MaxInterview for php session regenerate id by the best coders in the world

showing results for - "php session regenerate id"
Fran
19 Oct 2017
1<?php
2session_start();
3
4$old_sessionid = session_id();
5
6session_regenerate_id();
7
8$new_sessionid = session_id();
9
10echo "Old Session: $old_sessionid<br />";
11echo "New Session: $new_sessionid<br />";
12?>