Re: How can I read the value of an existing cookie?
| From: | Pere | Date: | Sat, 25 Aug 2001 16:10:39 +0000 |
| Subject: | Re: How can I read the value of an existing cookie? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64440@lists.php.net to get a copy of this message | ||
Thanks, Mike, for your help.
Best regards,
Pere
"Mike Cullerton" <php-l@bakednotfried.com> escribió en el mensaje
news:B7AD1A0B.12C33%php-l@bakednotfried.com...
> on 8/25/01 6:20 AM, Pere at alvitronia@retemail.es wrote:
>
> > I am setting up a cookie stating the language the user wishes to have
the
> > site written with. No problem up to here.
> >
> > Next time the user goes back to the site I want to read the cookie and,
> > provided it exists, set up the site with the requested language.
> >
> > How can I retrieve the existing value of the cookie? (My cookie looks
> > "language","spanish or english or german","time()+1 year").
>
> $HTTP_COOKIE_VARS["language"]
>
> if register_globals is on, you should be able to use $language
>
> mike
>
> > Thank you for your support.
> >
> > Pere
> >
> >
>
>
> -- mike cullerton
>
>