Re: Strange_session-problem_with_php-file_in_<img_src
| From: | Chris Shiflett | Date: | Fri, 31 Jan 2003 17:08:23 +0000 |
| Subject: | Re: Strange_session-problem_with_php-file_in_<img_src | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133809@lists.php.net to get a copy of this message | ||
--- Victor <victor@miceandbrains.dk> wrote:
> <img src="createjpg.php?id=xyz">
...
> The problem is that since the file createjpg.php is'nt
> loaded in the browser as and ordinary file, it doesnt
> recognizes the session variable.
When a browser requests an image, the request is identical
to a request for any other resource, be it a .html file or
a .php script. It will send cookies, URL variables (if they
are in the src attribute as your example shows), and
anything else that a normal request includes.
Instead of trying to tell us what the problem is, just
explain what trouble you are having. We can then tell *you*
what the problem is.
Chris