I have a website and backend tool that both use $SESSION[firstName] and sometimes the data mixes. So I did some research and came up with sessionname, but it's not working for me. The admin session variable is not being shown on the page I created to show session variables. Do I have this setup correctly?
Backend tools page:
$_SESSION['admin'] = "Yes";
header("Cache-control: private"); // IE 6 Fix.
Session variable display page:
Drop session_name. Just use nested arrays...as so:
$_SESSION = array( 'site' => array(), 'Tool' => array() );
$_SESSION['Tool']['something'] = 'whatever';