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? Link to comment https://forums.phpfreaks.com/topic/255603-is-this-depreceated/ 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"); } Link to comment https://forums.phpfreaks.com/topic/255603-is-this-depreceated/#findComment-1310349 Share on other sites More sharing options...
Zola Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks matey Link to comment https://forums.phpfreaks.com/topic/255603-is-this-depreceated/#findComment-1310352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.