Jump to content

cookie question


firelior

Recommended Posts

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 there
another way to do this?
with session or something?
Link to comment
https://forums.phpfreaks.com/topic/21706-cookie-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.