Both accomplish the same thing, except how you are using it might not be what you expect.what is the diffirent between : ////////// session_start (); $_SESSION['eventid'] = 'arma2'; /////////// and ///////////// session_start (); session_register('arama2'); ///////////
Regards
Nabil
$_SESSION['eventid'] = 'arma2'; will assign the string "arma2" to $_SESSION['eventid'] (obviously).
session_register('arama2'); will make the variable $arma2 a session variable. I believe you want session_register('eventid')
The session_register way of doing things makes it act a lot like register_globals is on. It seems like we're trying to move away from this style of coding, so I'd suggest you use the first method with the $_SESSION variable.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php