Re: Problems with Cookies

From: Date: Sat, 16 Feb 2002 15:25:17 +0000
Subject: Re: Problems with Cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85046@lists.php.net to get a copy of this message
email me if you dont understand something about my question. I read it back to myself, and it all sounds so complicated! TIA "Georgie Casey" <georgie@brooksvideo.com> wrote in message news:20020216164907.47074.qmail@pb1.pair.com... > 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 (#85046) next »