I have a problem that is difficult to explain which
has to do with "disappearing" client variables. I
have a site that makes use of virtual hostnames. I
have a wildcard in my DNS entries so that *.mysite.com
all go to the same server and then ColdFusion takes
that host name from the URL and acts accordingly. In
other words, someone could go to WWW.mysite.com OR to
XYZ.mysite.com and both would actually go to the same
server and would run the same code. I harvest the
first part of the URL and display the right data for
that site. (with me so far?) I have frame with a
navigation menu which lets people "jump" from "site to
site" Its a pulldown menu that targets the other
frame and causes it to load the date for a different
virtual host. When a navigation item is chosen BOTH
frames load using the new virtual host.
Does anyone think there should be any problems keeping
client variables alive going between virtual hosts? (I
am having one :-) ) I do seem to be maintaining the
client tokens even when the problem is occuring. I
pass the CFID/CFTOKEN around in the URLs like so:
<cfapplication name="mysite" sessionmanagement="yes"
SESSIONTIMEOUT="#CreateTimeSpan(0, 3, 0, 0)#"
clientmanagement="YES" setclientcookies="NO" >
<CFIF ISDEFINED("ATTRIBUTES.SETTOKEN")>
<CFIF ISDEFINED("attributes.CFID")>
<CFSET url.cfid="#attributes.cfid#">
<CFSET url.cftoken="#attributes.cftoken#">
<CFSET url.mnky="#attributes.cftoken#">
</CFIF>
<CFSET
session.session_id="deliveru_#url.cfid#_#url.cftoken#">
<cfcookie Name="CFID" value="#URL.CFID#">
<cfcookie Name="CFToken" value="#URL.CFToken#">
</CFIF>
I know its a long shot, but thanks for any ideas,
Eron
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists