Thanks Bud and Shawnea for your help. Shawnea's
comment about cookies and domains prompted me to add
domain=".mydomain.com" to the <CFCOOKIE> statement.
That seems to have solved my problem...I hope I don't
speak too soon.
Weird, but makes sense.
-----Original Message-----
From: Shawnea Carter [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 5:08 PM
To: CF-Talk
Subject: Re: Disappearing Client Variables
My recollection - and someone jump in here if I am off
base - is that client
variables DO utilize cookies to some extent - and
cookies can only set and
read by the same domain. The browser doesn't "know"
that the domains are
'virtual'.
So what is happening is the client variables aren't
disappearing when you go
to xyz.mysite.com if you set them on www.mysite.com.
They were never there
to begin with.
HTH
Shawnea Carter
----- Original Message -----
From: "Eron Cohen" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 02, 2001 4:34 PM
Subject: Disappearing Client Variables
> 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