saradrungta Posted January 11, 2009 Share Posted January 11, 2009 hi guys... is it nessary to use session_register('USERID') while i directly use $_SESSION['USERID']="xyz" pls guide. thanks Link to comment https://forums.phpfreaks.com/topic/140402-solved-session_register/ Share on other sites More sharing options...
gevans Posted January 11, 2009 Share Posted January 11, 2009 As long as you've called session_start() and are using php v5.3 or later session_register() shouldn't be used Link to comment https://forums.phpfreaks.com/topic/140402-solved-session_register/#findComment-734795 Share on other sites More sharing options...
killah Posted January 11, 2009 Share Posted January 11, 2009 I have never used session_register() function before. I therefor can say you can normaly just go by using this: session_start(); $_SESSION['USERID'] = 'xyz'; session_end(); //of course only if you want to end it Link to comment https://forums.phpfreaks.com/topic/140402-solved-session_register/#findComment-734810 Share on other sites More sharing options...
gevans Posted January 11, 2009 Share Posted January 11, 2009 I've never heard of or seen session_end() I wouldn't recomend using it seeing as I can't find it on the php.net site Link to comment https://forums.phpfreaks.com/topic/140402-solved-session_register/#findComment-734813 Share on other sites More sharing options...
killah Posted January 11, 2009 Share Posted January 11, 2009 I've never heard of or seen session_end() I wouldn't recomend using it seeing as I can't find it on the php.net site Sorry about that one. I tend to code my own php function's and think they are part of the php v4 + community. Therefor do not pay attention to my session_end(); bit at the bottom. Link to comment https://forums.phpfreaks.com/topic/140402-solved-session_register/#findComment-734817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.