Jump to content

[SOLVED] Cookie problem


crawlerbasher

Recommended Posts

I'm having a bit of a problem with my cookies using php.

 

I've manage to set it and also delete it with no problem at all.

The part I'm having problem is with the script not executing the correct feilds when there is a cookie in place.

 

if (isset($COOKIE['FFXIGuild'])) {
echo "You can now acsses the secreat page";
                                           } else {
                                           echo "You have not loged in";
                                            }

 

When there is no cookies it should go to the last statment, and if there is a cookie it should go to the first statment.

But with or with out the cookies, it goes to the last statment all the time.

Link to comment
https://forums.phpfreaks.com/topic/37798-solved-cookie-problem/
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.