forumnz Posted December 30, 2006 Share Posted December 30, 2006 Stop someone from accessing a few pages without being logged in? Quote Link to comment Share on other sites More sharing options...
fert Posted December 30, 2006 Share Posted December 30, 2006 using cookies[code]if($_COOKIE['user']==""){ die("You need to be logged in to do that");}[/code]using sessions[code]if($_SESSION['user']==""){ die("You need to be logged in to do that");}[/code] Quote Link to comment Share on other sites More sharing options...
ki Posted December 30, 2006 Share Posted December 30, 2006 you could also use both accessing a cookie and then turning it into a session Quote Link to comment Share on other sites More sharing options...
forumnz Posted December 30, 2006 Author Share Posted December 30, 2006 Could anyone please point me to a tutorial?Thanks all! 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.