To do that you'd need some sort of client-based script.  You can do this
pretty easily with JavaScript, but if script is also turned off you'll be
left in the dark.

I've an article covering how to send information to the server without a
page refresh here:

http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GIFAs
Pipe/Index.cfm

Leveraging the fact that a single "page" is actually made up many separate
requests to the server (for graphics, scripts, style sheets, etc) and that
each request can both check and set cookies you MIGHT try to do something
like this:

Using the technique above to create a CFM "gif" set a GIF at the top of the
page that set's a cookie.

Now, at the bottom of the page call another CFM gif that checks to see if
the cookie is there.  You may have to work out a way to ENSURE that the two
requests are made in serial but in theory it should work.

Jim Davis

> -----Original Message-----
> From: Gabriel Robichaud [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 23, 2003 3:17 PM
> To: CF-Talk
> Subject: Re: cookie detection
> 
> I guess i should have been more clear in my question... doing it in 2
> pages is what i wanted to avoid.  It would be nice if i could just test
> to see if the user has cookies enabled and then do treatment
> accordingly.  That would let me do something in Application.cfm... but I
> guess i'll handle it in my header file.
> 
> thank you philip for your answer.
> 
> Gabriel
> 
> Philip Arnold wrote:
> >>I would think, just set it, then try to read it (if it doesnt
> >>exist) it's disabled ;) hehe
> >
> >
> > But you HAVE to do it over 2 pages
> >
> > If you try to set one and then check it on the same page, it hasn't had
> > a chance to get to the browser, so it's always set...
> >
> >
> >
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to