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? Link to comment https://forums.phpfreaks.com/topic/21706-cookie-question/ 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 Link to comment https://forums.phpfreaks.com/topic/21706-cookie-question/#findComment-96926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.