>If i set the cookie on site-b (using the value in url.jsessionid)
>manually using CF then the $ signs are "helpfully" escaped to %24.

is that because it came from the URL? Try the two following tricks:

- use UrlDecode() when writing url.jsessionid to the cookie

or

- have siteA write a cookie for siteB (using <cfcookie domain=""...>
syntax) and vice versa (siteB writes cookies for siteA)

/t

>-----Original Message-----
>From: Bert Dawson [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, January 18, 2005 5:03 PM
>To: CF-Talk
>Subject: Re: two websites, one Cfusion, sharing sessions
>
>On Tue, 18 Jan 2005 15:29:50 +0100, RADEMAKERS Tanguy
><[EMAIL PROTECTED]> wrote:
>> it's not a bug, it's a (security) feature - a site can only retrieve
>> cookies it has set itself,
>
>I know that. I need to get to a situation where 2 sites have the same
>jsessionid.
>It gets set automatically on site-a, by JRun.
>Ideally, when the user clicks to site-b i would like to pass along the
>sessionID in the URL, and for JRun to see the url.jsessionid, send the
>request to the correct server if its clustered, and set a
>cookie.jsessionid on site-b.
>But it doesn't appear to do this.
>If i set the cookie on site-b (using the value in url.jsessionid)
>manually using CF then the $ signs are "helpfully" escaped to %24.
>This causes JRun to set a new cookie (and start a new session) when i
>start relying on the cookie.
>I've just discovered that if I use javascript to set the cookie then
>everything works OK, but this relies on the user having javascript
>enabled.
>
>Has no-one else had to share Jsessions accross mutliple domains?
>
>Bert
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190937
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to