I have two apps that I\'m trying to unify. One was written by me and another is a CMS I am using. My authentication happens in the one I coded and I\'d like my CMS to know t
session_regenerate _id()
The manual explains this pretty well but here's some example from the manual
session_start(); $old_sessionid = session_id(); session_regenerate_id(); $new_sessionid = session_id(); echo "Old Session: $old_sessionid"; echo "New Session: $new_sessionid"; print_r($_SESSION);