If the cookie is being set on a specific server then www.anotherdimension.co.uk then unless you proxy the A4d traffic via this domain then the guest_id cookie will not be sent by the browser. If you could alter the domain of the cookie to anotherdimension.co.uk then if the a4d server is running on a different machine eg a4d.anotherdimension.co.uk then the guest_id will also be sent.
Also, is the cookie being sent with a path component which could limit its scope? Michael ----- Original Message ----- From: "Lisa Pollard" <[EMAIL PROTECTED]> To: "Michael Bond" <[EMAIL PROTECTED]>; "Active4D Developer Discussion List" <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 6:34 PM Subject: Re: [Active4d-dev] Retrieving Cookie Information > Thanks for the reply Michael. > > I have tried all of these approaches and have not managed to retrieve > the cookie I am looking for - in fact I can only see the > ACTIVE4D_SESSIONID cookie. > > I think the problem may be down to domains. Let me expand. > I have a client who already has a web sales system which I wrote in PHP > using 4D via IC. All works lovely via my PHP server on the > www.anotherdimension.co.uk domain. This system sets a Guest_ID cookie > so we can see if the person has already visited the site before. > Now he is expanding and I am writing a new sales system (to deal with a > new part of the business) which I am writing in Active4D (because it's > lovely), but this will be running from his 4D Client machine on a > different IP no. > > What I need to do is to see if the Guest_ID cookie is there from both > parts of the system which reside on different domains. > Maybe this is just impossible and I need to work round it. > > Any ideas? > > 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 > > On Thursday, September 18, 2003, at 04:39 pm, Michael Bond wrote: > > > 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 > > > > > _______________________________________________ Active4d-dev mailing list [EMAIL PROTECTED] http://aparajitaworld.com/mailman/listinfo/active4d-dev
