Ask a Question related to Macromedia ColdFusion, Design and Development.
-
Yags420 #1
CFLOCK / CFCOOKIE and SubDomains with a _
This is a very odd problem....
We have a site that uses a wildcard subdomain, as many different agents use
the same dynamic site.
Whenever you have a url with an underscore ( _ ) in the name I get the
following when I try to login using the CFLOCK and CFCOOKIE comands:
1) On Firefox I can login fine with no problem
2) On IE it tells me Cookie.ID is undefined. I take the same site, delete
the _ and it works with no problem. So it is only sites with an _ in the
subdomain and on IE that I get this problem.
Here is the CFLOCK / CFCOOKIE code:
<cfif not IsDefined("Cookie.ID")>
<CFLOCK SCOPE="SESSION" TYPE="READONLY" TIMEOUT="5">
<CFCOOKIE NAME="ID" VALUE="#getLOGIN.id#">
<CFCOOKIE NAME="EMAIL" VALUE="#getLOGIN.email#">
<CFCOOKIE NAME="FIRSTNAME" VALUE="#getLOGIN.first_name#">
<CFCOOKIE NAME="LASTNAME" VALUE="#getLOGIN.last_name#">
<CFCOOKIE NAME="EXIST" VALUE="#getLOGIN.recordcount#">
<CFCOOKIE NAME="ACTIVE" VALUE="#getLOGIN.active#">
<CFCOOKIE NAME="REF1" VALUE="#getLOGIN.ref1#">
<Cfif getLogin.ref1 eq 'CruisesInc' or getLogin.ref1 eq 'CruiseOne'>
<CFCOOKIE NAME="SITEURL"
VALUE="#getLOGIN.ref2#">
<cfquery name="getagent" datasource="nms_gc">
SELECT *
FROM cruise_agents
WHERE rewards_entry_url =
'#getLOGIN.ref2#'
</cfquery>
<CFCOOKIE NAME="MAINURL" VALUE="#getAgent.cruise_url#">
<cfelse>
<CFCOOKIE NAME="SITEURL"
VALUE="#getAff.url#">
<CFCOOKIE NAME="MAINURL"
VALUE="#getAff.mainurl#">
</Cfif>
</CFLOCK>
</cfif>
Thanks for any help!
Yags420 Guest
-
Virtual sites/subdomains causing CF problem with paths
We are running MX7, and have setup some subdomains based on directories from root. For example, we have a web site that has the following:... -
cflogin and cfcookie in application.cfm
Hi, I just upgraded our CF5 to CFMX7 and having problem getting the cfcookied to work properly with the new cflogin tag in application.cfm. I... -
CFCookie and Select
I am trying to set a CFCookie with the value from a List/Menu. I have the following code: <form name="form1" method="post" action=""> <p>... -
cfcookie help
hello, i starting coding in coldfusion a week ago and i am really enjoying it so far. However, i finally completed my hardest task yet by bulding a... -
Create email accounts and subdomains
Can coldfusion create email accounts and or subdomains on the fly? For instance, someone signs up for membership, credit card is processed,...



Reply With Quote

