There are 3 ways to do this.
request cookies - this returns and iterator and can be used like so:
if(request cookies{"COOKIE_NAME"}#"")
// Cookie is there
else
// Cookie isn't there
end if
get request cookie - "" if not present, contents if present eg
if(get request cookie("COOKIE_NAME") #"")
// Cookie is there
else
// Cookie isn't there
end if
or
array text($out_cookie_names;0)
array text($out_cookie_values;0)
get request cookies($out_cookie_names;$out_cookie_values)
if(find in array($out_cookie_names;"COOKIE_NAME") # -1 )
// Cookie is there
else
// Cookie isn't there
end if
Michael Bond
----- Original Message -----
From: "Lisa Pollard" <[EMAIL PROTECTED]>
To: "Active List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 5:13 PM
Subject: [Active4d-dev] Retrieving Cookie Information
> Hiya,
>
> I need to be able to see if a cookie has been previously set. The
> cookie may have been set by either Active4D or by PHP, but I don't
> think that would make a difference.
>
> If I 'dump request cookies' I only get my ACTIVE4D_SESSIONID cookie. If
> I 'dump response cookies' I don't get anything. How can I find out if a
> particular cookie exists and what the value is?
>
> cheers
> Lisa
>
> --
> Lisa Pollard
> Software Developer
>
> Another Dimension Ltd
> 167, Ardleigh Green Road
> Hornchurch, Essex. RM11 2LF
>
> [EMAIL PROTECTED]
> Tel: +44 1708 701511
> URL: http://www.anotherdimension.co.uk
>
> _______________________________________________
> Active4d-dev mailing list
> [EMAIL PROTECTED]
> http://aparajitaworld.com/mailman/listinfo/active4d-dev
_______________________________________________
Active4d-dev mailing list
[EMAIL PROTECTED]
http://aparajitaworld.com/mailman/listinfo/active4d-dev