Session_id & session_regenerate_id in PHPWe can create a unique number for the session of the browser by generating a session id. Session id is generated by PHP at server end user can't change the generated session id. However it can be re-created. Here is the code.
How session_id changes when we login
Re generating the session_idBy using script we can regenerate another session_id. Here is the function .
Note that this is not same as session destroy or logout, here we are only changing the session_id value to a new one. All other session data remains unchanged.
This article is written by plus2net.com team.
PHP Session: Creating , using destroying Session variables PHP Session ID: generating session id and re-generating Online membership management script Posting Activation key for lost encrypted password to the email address Creating a signup page and storing member details in MySQL Storing signup data in a table Changing or updating password by the logged in member Forgot password feature in member signup script Basic login form Login script to authenticate user from a mysql table data Checking the status of user for login or logged out Updating member profile inside member area Adding Profile Photo by Members after login Finding out who are online