Jump to content

Archived

This topic is now archived and is closed to further replies.

sikofitt

Help Retrieving Cookies

Recommended Posts

Two problems with this one.

i set some cookies with ASP, i checked and they exist on my harddrive. i'm trying to retrieve them with PHP.

I'm just using

[code]
   echo $_COOKIE["cookiename"];
[/code]

but it doesn't seem to get the cookie.

number two the reason for setting them with ASP.

i have multiple virtual servers on my machine for users (user.domain.com)
and every time i try to use any php with these virtual servers it gives me an error, like cannot read input file. i know there is someway like maybe multiple PHP.INI files but i'm not sure how to do that. if i knew i would have no problem with the cookies cause i could ditch asp.

any help would be appritiated.

Share this post


Link to post
Share on other sites
Well if you saved them correctly it should work.. two ways of getting your cookie could me $_COOKIE['mycookie'] or $HTTP_COOKIE_VARS["mycookie"]..
Maybe the problem is on how you set some cookies with ASP,

Share this post


Link to post
Share on other sites

×

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.