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.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to