Page 1 of 1

How to send cookie with image request

Posted: Wed Jul 07, 2010 4:20 am
by Niro
Hello Experts,

I'm using gd to fetch an image from a remote server.
$res=imagecreatefromJPEG ($url);

I need to have a cookie set with a value along with the call to get the image.

Is this possible with GD?
How would I do that?

Thanks,
Niro

Re: How to send cookie with image request

Posted: Fri Aug 13, 2010 1:22 pm
by greyhoundcode
Cookies and GD are two very different areas. Use setcookie() or a framework equivalent.