darkfreaks Posted December 4, 2007 Share Posted December 4, 2007 when using session_register which is the preferred way to do it? <?php //depracated version session_register("name");?> or <?php // prefferred version $_SESSION["name"];?> Quote Link to comment Share on other sites More sharing options...
revraz Posted December 4, 2007 Share Posted December 4, 2007 use session_start() with $_SESSION Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted December 4, 2007 Author Share Posted December 4, 2007 well im using session_register but according to php.net its depracated and tells me to use $_SESSION instead, so should i go back and change it? ??? Quote Link to comment Share on other sites More sharing options...
revraz Posted December 4, 2007 Share Posted December 4, 2007 If you want it to work with future version of PHP you should. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 4, 2007 Share Posted December 4, 2007 session_register(), session_is_registered(), and session_unregister() are all dependent on register globals being on. They became obsolete in php4.2 in the year 2002. DON'T use them, even if you happen to be on a server with register globals on, because register globals and all the functions that depend on them have been completely removed in PHP6. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.