RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Tim Blair
Is it possible to run 2 websites on a single CF server, and for a user to have the same Jsession on both sites? The easiest way would be to have the same application name in your cfapplication tag on each site. Of course, both sites would also share the same application scope etc too. Tim.

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread James Holmes
You also need to continue to pass the URKLToken in every link in your app. -Original Message- From: Tim Blair [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 January 2005 7:58 To: CF-Talk Subject: RE: two websites, one Cfusion, sharing sessions Is it possible to run 2 websites on a single

Re: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Bert Dawson
They already *do* share the same application name The problem seems to be with setting the jsession cookie: I go to site-a, get a jsession cookie, then when i follow a link to site-b i need to have the same jsession cookie set for that domain. If i pass the in the URL

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread RADEMAKERS Tanguy
-Original Message- From: Bert Dawson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 3:21 PM To: CF-Talk Subject: Re: two websites, one Cfusion, sharing sessions They already *do* share the same application name The problem seems to be with setting the jsession cookie: I go

Re: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Bert Dawson
Is this something you've found that works, of is it the official answer? Apart from being such a PITA as to not really be an option, i've done a quick test and it looks like this is not going to would with sticky sessions in a cluster - the request with the jsession in the URL gets passed to

Re: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Bert Dawson
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,

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread RADEMAKERS Tanguy
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

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Dave Watts
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) The first option should work. The

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread RADEMAKERS Tanguy
=Set-Cookie value=TEST_BYHAND=;path=/tanguyland/ yields Set-Cookie: TEST_BYHAND=;path=/tanguyland/ /t -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 5:42 PM To: CF-Talk Subject: RE: two websites, one Cfusion, sharing sessions

Re: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Bert Dawson
I tried UrlDecode() , and replace, but using cfcookie or cfset cookie always seems to escape the $. Is there a way to manually set the cookie without using javascript or CF? test cfcookie name=TEST value=$ cfcookie name=TEST1 value=#URLdecode('%24')# cfset cookie.TEST2 = $ script

Re: two websites, one Cfusion, sharing sessions

2005-01-18 Thread Bert Dawson
On Tue, 18 Jan 2005 18:13:02 +0100, RADEMAKERS Tanguy [EMAIL PROTECTED] wrote: what does though, is doing it by hand: cfheader name=Set-Cookie value=TEST_BYHAND=;path=/tanguyland/ yields Set-Cookie: TEST_BYHAND=;path=/tanguyland/ Cool - that does the trick. Now the

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread RADEMAKERS Tanguy
Message- From: Bert Dawson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 7:09 PM To: CF-Talk Subject: Re: two websites, one Cfusion, sharing sessions On Tue, 18 Jan 2005 18:13:02 +0100, RADEMAKERS Tanguy [EMAIL PROTECTED] wrote: what does though, is doing it by hand

RE: two websites, one Cfusion, sharing sessions

2005-01-18 Thread RADEMAKERS Tanguy
-Original Message- From: Bert Dawson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 7:09 PM To: CF-Talk Subject: Re: two websites, one Cfusion, sharing sessions On Tue, 18 Jan 2005 18:13:02 +0100, RADEMAKERS Tanguy [EMAIL PROTECTED] wrote: what does though, is doing it by hand