in reply to Execute javascript before setting cookie headers

Well, you cannot store images in cookies, there isn't enought room.

Now, I think what you are after is a way to cache them on the client's browser, no?

Celebrate Intellectual Diversity

  • Comment on Re: Execute javascript before setting cookie headers

Replies are listed 'Best First'.
Re^2: Execute javascript before setting cookie headers
by Your Mother (Archbishop) on Sep 28, 2005 at 03:38 UTC

    I think it's not what the OP is asking but you could reliably store small images (<4kb) in cookies (might have to encode certain chars like line endings?) and I suspect some browsers might even accept larger ones. You could also break up a bigger image across a hundred cookies. I embedded a bunch of PNGs written out in ASCII inside a polling application module so that the client would have no chance of losing them.