Ingenious Posted February 8, 2012 Share Posted February 8, 2012 Good day, I am looking for the replacement for session_is_registered. anyone has any idea? <? session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php"); } ?> <html> <body> Login Successful </body> </html> Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/256694-session_is_registered-deprecated/ Share on other sites More sharing options...
AyKay47 Posted February 8, 2012 Share Posted February 8, 2012 if(isset($_SESSION['myusername'])) { header("location: main_login.php"); } Quote Link to comment https://forums.phpfreaks.com/topic/256694-session_is_registered-deprecated/#findComment-1315928 Share on other sites More sharing options...
Ingenious Posted February 8, 2012 Author Share Posted February 8, 2012 Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/256694-session_is_registered-deprecated/#findComment-1315929 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.