Zola Posted January 23, 2012 Share Posted January 23, 2012 // if the session is not registered if(session_is_registered("name") == false) { header("Location: http://www.myurl.com"); } ?> I have this at the bottom of my login script to redirect to the register page. What should I be writing instead? Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted January 23, 2012 Share Posted January 23, 2012 if(!isset($_SESSION['name'])) { header("Location: http://www.myurl.com"); } Quote Link to comment Share on other sites More sharing options...
Zola Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks matey Quote Link to comment 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.