Cookies allowed

2003-01-21 Thread Parker, Kevin
How do I check if cookies are allowed on a machine if thats even possible?

TIA!!!


**

Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]
www.workcover.com

p: 08 82332548
f: 08 82332000
m: 0418 806 166

**




This e-mail is intended for the use of the addressee only. It may 
contain information that is protected by legislated confidentiality
and/or is legally privileged. If you are not the intended recipient you
are prohibited from disseminating, distributing or copying this e-mail.

Any opinion expressed in this e-mail may not necessarily be that of the
WorkCover Corporation of South Australia. Although precautions have
been taken, the sender cannot warrant that this e-mail or any files
transmitted with it are free of viruses or any other defect.

If you have received this e-mail in error, please notify the sender
immediately by return e-mail and destroy the original e-mail and any
copies.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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




RE: Cookies allowed

2003-01-21 Thread Dave Watts
 How do I check if cookies are allowed on a machine 
 if thats even possible?

You can't really do that directly, usually. Typically, you set a cookie on
one page, and if it's available in the next page, then you know that cookies
are allowed.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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




Re: Cookies allowed

2003-01-21 Thread Jesse Houwing
Parker, Kevin wrote:

How do I check if cookies are allowed on a machine if thats even possible?
  

Set a cookie on one page, and then check if it exists on the next

Jesse

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

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




RE: Cookies allowed

2003-01-21 Thread Parker, Kevin
Is it appropriate to set it in application.cfm


**

Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]
www.workcover.com

p: 08 82332548
f: 08 82332000
m: 0418 806 166

**


-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 10:41 AM
To: CF-Talk
Subject: RE: Cookies allowed


 How do I check if cookies are allowed on a machine 
 if thats even possible?

You can't really do that directly, usually. Typically, you set a cookie on
one page, and if it's available in the next page, then you know that cookies
are allowed.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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




Re: Cookies allowed

2003-01-21 Thread Jesse Houwing
Parker, Kevin wrote:

Is it appropriate to set it in application.cfm
  

It is not possible to check it on one page if you include it in the 
application. You can however put the check for the cookie in the 
application. This is because the application gets included in the called 
template all the way at the top, and it does not generate another 
request that gets sent to the client (hence no cookies get set until the 
application *and* the template have fully executed).

Jesse

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

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




RE: Cookies allowed

2003-01-21 Thread Joe Eugene
Dave,
I think if its CFMX and J2ee session.. this can be done
automatically with that function(UrlJSessionID()) or some like that.

Joe

 -Original Message-
 From: Dave Watts [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 7:11 PM
 To: CF-Talk
 Subject: RE: Cookies allowed


  How do I check if cookies are allowed on a machine
  if thats even possible?

 You can't really do that directly, usually. Typically, you set a cookie on
 one page, and if it's available in the next page, then you know
 that cookies
 are allowed.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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




RE: Cookies allowed

2003-01-21 Thread Dave Watts
 I think if its CFMX and J2ee session.. this can be done
 automatically with that function(UrlJSessionID()) or some 
 like that.

It doesn't matter whether you're using J2EE sessions, or CFMX, or .NET, or
anything else - the only way to guarantee the existence of a cookie, within
server-side code, is to set the cookie on one page and test for its
existence on subsequent pages.

You can, however, use URL variables instead of cookies for state management,
and CFMX provides some tools to help that, such as the URLSessionFormat
function or the ADDTOKEN attribute of CFLOCATION. The URLSessionFormat
function will append the session identifying tokens if they're not passed to
the page via cookies, I think.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=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




Re: Cookies allowed

2003-01-21 Thread Massimo, Tiziana e Federica
 How do I check if cookies are allowed on a machine if thats even possible?

cfif isdefined(cookie.tmtCookieTest)
 cflocation url=yescookie.htm addtoken=No
cfelseif not isdefined(url.tmtCookieSend)
 !--- First time the user visit the page, set the cookie  ---
 cfcookie name=tmtCookieTest value=Accepts cookies
 !--- The cookie was send, redirect and set the tmtCookieSend flag as an
url variable ---
 cfheader name=Refresh value=0; URL=#cgi.script_name#?tmtCookieSend=1
cfelseif isdefined(url.tmtCookieSend)
 !--- We tried sending the cookie, no way, cookies are disabled, get out of
here ---
 cflocation url=nocookie.htm addtoken=No
/cfif


Massimo Foti
Team Macromedia Volunteer for Dreamweaver
http://www.macromedia.com/go/team




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

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