[thelist] CGI & Cold Fusion
Keith
cache at dowebs.com
Thu Jan 31 15:16:01 CST 2002
> > Does anyone know a cgi command i can use with Cold Fusion
> > that can a test
> > whether or not a clients browser has cookies enabled?
Don't know how you'd do this in Con Fusion, but here's what I've
done with a Perl cgi.
Sometimes I want to know if the browser will accept a cookie when
they submit a form. So I place a one pixel image on the form page
that calls a cgi.
<img src=set_cookie.cgi width=1 height=1>
That cgi sets the cookie name only and returns a single space " ".
Then when they submit the form I look for a cookie with that name, if
it's there I add the value, if not I do my "Hey dink, ya gotta accept
the darn cookie" routine.
keith
More information about the thelist
mailing list