I am trying to determine if a user's browser
accepts cookies.
In a tcl file I have:
ad_set_cookie -expires never "mycookie" "myvalue"
The above sets the cookie....
and in the same tcl file, I check
set my_cookie [ad_get_cookie "mycookie"]
if { [empty_string_p $my_cookie] } {
# BROWSER Refuses Cookie
} else {
# Browser ACCEPTS Cookie
}
This code always shows the cookie, even
if the browser REFUSES the cookie. This
is INCORRECT. The ad_get_cookie must be
checking memory and not reading from the
browser. (IE6 and Netscape7)
I can go to a different webpage and
check the cookie find that indeed
the cookie was not set....
How do I determine if a user's browser
accepts a cookie WITHOUT going to a DIFFERENT
webpage....
TIA
-Bob