l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2005 Dec 17 07:16

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] when is an html image "sent"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] when is an html image "sent"?

On Friday 16 December 2005 11:24 pm, Peter Jay Salzman wrote:
> ... No matter what I try, though, I
> can't access sessions from the captcha2.php file.  I guess it must interfere
> with the image being sent to the client.

Oooh.  It must be that there's no mechanism for the browser to send
the cookie (which contains the session ID) when it requests an
image.  Sorry I caused you so much trouble.

I think what may work is to send the session ID in the URL.  That is,
construct the image URL like this:

  $url = 'captcha2.php?' . session_name() . '=' . session_id();

and then your form requests the image with:

  <img src='<?php echo $url ?>'>

or whatever the equivalent is with Smarty.

I have not tried this, it's just my best guess from reading the docs.

-- Rod
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!