Forum Moderators: open
I'm wondering how this is possible? How can a jpg or an image file be capable of dropping a cookie?
Thanks.
In PHP:
setcookie('somename', 'value');
header('Content-type: image/jpeg');
readfile('the_real_image.jpg'); // this will send the image to the browser
exit();
By modifying server settings you could even call the script
myimage.jpgand still have the server parse it as a PHP file.