Problems with Cookies

From: Date: Sat, 16 Feb 2002 15:22:07 +0000
Subject: Problems with Cookies
Groups: php.general 
Request: Send a blank email to php-general+get-85045@lists.php.net to get a copy of this message
Rite, a user logs in at http://localhost/employers/login.php and PHP sets a cookie, eusername, that has his username, funnily enough. then he clicks on to the /employers/search.php, submits his query and clicks on the page of http://localhost/freelancers/some_guy/index.php When I have a bit of PHP code at the top of /some_guy/index.php that check if an employer is looking at this site. <? if ($eusername <> ""){ do this; } ?> But PHP keeps telling me that eusername IS equal to "" and no employer is logged in, when they're definately is. WHY?? Has it something to do with the scope of cookies?? Because when I check if eusername exists in a page in the employers directory, it works fine.

« previous php.general (#85045) next »