firelior Posted September 22, 2006 Share Posted September 22, 2006 Hi,I was wondering, if I do login system with this code:[code]if(!isset($_COOKIE['password']) || !isset($_COOKIE['username'])){ exit("Wrong Username Or password");}[/code]is it good to do this in every page? so it will check if the user is logged in or not...or is thereanother way to do this?with session or something? Quote Link to comment Share on other sites More sharing options...
onlyican Posted September 22, 2006 Share Posted September 22, 2006 You can place a sessionwhen logging the user in, place a sessionlogged in userYOu can do the same for coockies, just create on cookie, holding the usernameand place that if there logged in 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.