Since I banged my head for a while figuring this out, I thought I'd pass it on in case someone else was having problems with sesssion handling in 4.2 This is outlined well in the online manual at http://www.php.net/
With register_globals off by default, use of the old session commands, such as
Code: Select all
session_register('variable name')
session_unregister('variable name')
session_is_registered('variable name')Instead, session info is now available via the superglobal array $_SESSION
To use sessions, you still need to begin each script with
Code: Select all
session_start()Code: Select all
$_SESSIONї'variable name'] = 'value you want to set';Code: Select all
$_SESSIONї'variable name']Code: Select all
<?php
session_start();
$user = 'Mack Owens';
$_SESSIONї'valid_user'] = $user;
echo $_SESSIONї'valid user'];
?>Hope this helps someone out there.