freelance84 Posted April 22, 2010 Share Posted April 22, 2010 Getting conflicting advice from a few different sources at the moment. A so far very solid book only shows how to use the "$_SESSION", but a few websites I've been on show tutorials with "session_register". Which should I use? pro's and con's? N.B. I am creating a website which when registered to requires a username and password to get in. Link to comment https://forums.phpfreaks.com/topic/199366-session_register-or-_session/ Share on other sites More sharing options...
oni-kun Posted April 22, 2010 Share Posted April 22, 2010 session_register has been deprecated for almost nine years. You can decide from there on. Link to comment https://forums.phpfreaks.com/topic/199366-session_register-or-_session/#findComment-1046329 Share on other sites More sharing options...
freelance84 Posted April 22, 2010 Author Share Posted April 22, 2010 ha! did not know that! thanks! Link to comment https://forums.phpfreaks.com/topic/199366-session_register-or-_session/#findComment-1046331 Share on other sites More sharing options...
etnastyles Posted April 22, 2010 Share Posted April 22, 2010 uses session_start then set your session params - not session_register if you look at php.net it tells you that this methed has been stopped Link to comment https://forums.phpfreaks.com/topic/199366-session_register-or-_session/#findComment-1046333 Share on other sites More sharing options...
freelance84 Posted April 22, 2010 Author Share Posted April 22, 2010 yup that's exactly what the book i'm learning from tells me to do too. cheers Link to comment https://forums.phpfreaks.com/topic/199366-session_register-or-_session/#findComment-1046372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.