CFCOOKIE - how to handle, subdoman and domain authentication

2008-01-30 Thread Nate Willard
Hello (last question today - promise) 

I have the following two domains

domain.com  subdm.domain.com

Both these domains use the same login system however,
I'd like each site to have an individually unique
cookie.

So if a user logs into a main domain (domain.com) it
does not carry over to the subdm.domain.com

I'm running into issues now that are causing conflicts
between the two cookies and breaking the sites.

I have the following settings
domain.com
CFCOOKIE domain value = .domain.com

subdm.domain.com
CFCOOKIE domain value = . subdm.domain.com

Does anyone know why this would cause a conflict?

Thank you


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297778
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFCOOKIE - how to handle, subdoman and domain authentication

2008-01-30 Thread Dave Watts
 I have the following two domains
 
 domain.com  subdm.domain.com
 
 Both these domains use the same login system however, I'd 
 like each site to have an individually unique cookie.
 
 So if a user logs into a main domain (domain.com) it does not 
 carry over to the subdm.domain.com
 
 I'm running into issues now that are causing conflicts 
 between the two cookies and breaking the sites.
 
 I have the following settings
 domain.com
 CFCOOKIE domain value = .domain.com
 
 subdm.domain.com
 CFCOOKIE domain value = . subdm.domain.com
 
 Does anyone know why this would cause a conflict?

The first cookie is set to work with any host within that domain. Your
subdomain is also within that domain. If you want separate cookies, give
them different names.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297780
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFCOOKIE - how to handle, subdoman and domain authentication

2008-01-30 Thread Nate Willard
Dave,

Thanks for the reply. Could you provide an example by
what you mean by different name?

They use the same login system, I just need it to be
specific to the main domain or a unique subdomain.
Does that makes sense?

Thanks

--- Dave Watts [EMAIL PROTECTED] wrote:

  I have the following two domains
  
  domain.com  subdm.domain.com
  
  Both these domains use the same login system
 however, I'd 
  like each site to have an individually unique
 cookie.
  
  So if a user logs into a main domain (domain.com)
 it does not 
  carry over to the subdm.domain.com
  
  I'm running into issues now that are causing
 conflicts 
  between the two cookies and breaking the sites.
  
  I have the following settings
  domain.com
  CFCOOKIE domain value = .domain.com
  
  subdm.domain.com
  CFCOOKIE domain value = . subdm.domain.com
  
  Does anyone know why this would cause a conflict?
 
 The first cookie is set to work with any host within
 that domain. Your
 subdomain is also within that domain. If you want
 separate cookies, give
 them different names.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Training: Adobe/Google/Paperthin Certified
 Partners
 http://training.figleaf.com/
 
 WebManiacs 2008: the ultimate conference for
 CF/Flex/AIR developers!
 http://www.webmaniacsconference.com/
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297789
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFCOOKIE - how to handle, subdoman and domain authentication

2008-01-30 Thread Dave Watts
 Thanks for the reply. Could you provide an example by what 
 you mean by different name?

cfcookie name=yourcookiename1 ...

cfcookie name=yourcookiename2 ...

 They use the same login system, I just need it to be specific 
 to the main domain or a unique subdomain.

There's no way to make a cookie specific to a domain, but not to the hosts
or subdomains within that domain.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297792
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFCOOKIE - how to handle, subdoman and domain authentication

2008-01-30 Thread Roger B.
 They use the same login system, I just need it to be
 specific to the main domain or a unique subdomain.

Nate: To get the effect you're after, I'd suggest automatically
pushing people from domain.com to www.domain.com and setting the
cookie from there.

--
Roger Benningfield

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297797
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFCOOKIE - how to handle, subdoman and domain authentication

2008-01-30 Thread William Seiter
I haven't tried this yet, but in reviewing the docs on this tag I wonder...


Domain in which cookie is valid and to which cookie content can be sent
from the user's system. By default, the cookie is only available to the
server that set it. Use this attribute to make the cookie available to other
servers.

Must start with a period. If the value is a subdomain, the valid domain is
all domain names that end with this string. This attribute sets the
available subdomains on the site upon which the cookie can be used.

For a domain value that ends in a country code, the specification must
contain at least three periods; for example, .mongo.state.us. For
top-level domains, two periods are required; for example, .mgm.com.



Maybe if you try the domain set to .www.domain.com and
..subdomain.domain.com. It allows 3 periods in the documentation.  

You can also add a bit of code to the login page that detects if the user is
on the 'domain.com' or the 'www.domain.com' address.  If they are on the
'domain.com' address you can have the page reload itself as the
'www.domain.com'.

I don't have time to test this for you, but it is worth a shot.

William 

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer 
http://William.Seiter.com

-Original Message-
From: Nate Willard [mailto:[EMAIL PROTECTED] 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297801
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4