brown2005 Posted March 1, 2007 Share Posted March 1, 2007 $_SESSION['MembersID'] = $login_array['members_id']; session_register('MembersID'); and then when i use echo print_r($_SESSION); Array ( [image_random_value] => 1774e559f4e1b9450e5ec4d2a0669066 [MembersID] => ) 1 does that mean imy MembsID has not registered? as it hasnt done what I want it to, so I presume so.. Link to comment https://forums.phpfreaks.com/topic/40746-sessions/ Share on other sites More sharing options...
fert Posted March 1, 2007 Share Posted March 1, 2007 you shouldn't use session_register Link to comment https://forums.phpfreaks.com/topic/40746-sessions/#findComment-197254 Share on other sites More sharing options...
brown2005 Posted March 1, 2007 Author Share Posted March 1, 2007 why not? what should I use? Link to comment https://forums.phpfreaks.com/topic/40746-sessions/#findComment-197257 Share on other sites More sharing options...
fert Posted March 1, 2007 Share Posted March 1, 2007 session_register() is deprecated. Just take that of of your code and it should work Link to comment https://forums.phpfreaks.com/topic/40746-sessions/#findComment-197258 Share on other sites More sharing options...
brown2005 Posted March 1, 2007 Author Share Posted March 1, 2007 well i left it in and got it to work, i had spelt a felt wrong... so wat do u mean by session_register() is deprecated? Link to comment https://forums.phpfreaks.com/topic/40746-sessions/#findComment-197261 Share on other sites More sharing options...
fert Posted March 1, 2007 Share Posted March 1, 2007 so wat do u mean by session_register() is deprecated? on the PHP site it says Use of session_register() is deprecated and Use of $_SESSION is preferred, as of PHP 4.1.0 Link to comment https://forums.phpfreaks.com/topic/40746-sessions/#findComment-197268 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.