Take the 2-minute tour ×  I have some images in a section of a
site that require the user to be logged in in order to view.
These images are served by a PHP script, which checks the user's
login state and if valid, serves the binary data with the
appropriate headers. This all works fine.  The issue comes when
a user tries to print one of these images. In Internet Explorer,
when they go to print preview, they get the broken image box
with a red cross in the corner instead of the actual file. This
is also what gets printed. All other browsers can print the
images without issue.  I have some images elsewhere on the site
that are also served via. PHP but these don't require a login.
These print fine.  The PHP-powered HTML pages on the site that
require a login also print fine in IE. It's just login-required
images.  When the user hits 'print preview', this does not seem
to result in additional HTTP request to the server for the file.
However I do see an additional HTTP request a few seconds later
that comes from