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"];?> Link to comment https://forums.phpfreaks.com/topic/80162-sessions-question/ Share on other sites More sharing options...
revraz Posted December 4, 2007 Share Posted December 4, 2007 use session_start() with $_SESSION Link to comment https://forums.phpfreaks.com/topic/80162-sessions-question/#findComment-406277 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? ??? Link to comment https://forums.phpfreaks.com/topic/80162-sessions-question/#findComment-406279 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. Link to comment https://forums.phpfreaks.com/topic/80162-sessions-question/#findComment-406282 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. Link to comment https://forums.phpfreaks.com/topic/80162-sessions-question/#findComment-406288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.