Sounds plausible.

I checked my session variables from the debugging window and I found values for 

CFID
CFTOPKEN
sessionId
jsessionId

the values of these variables do _not_ change when I go from Application A to 
Application B and vice versa. To check I do:

in Application A: 
<cfset session.test="test app a">
<cfdump var="#session#" label="#APPLICATION.applicationname#">

Here session.test show the value test Application a

and in Application B

<cfdump var="#session#" label="#APPLICATION.applicationname#">
<cfabort>

When requesting a page in Application B there is no session.test

So it looks like Coldfusion uses the same session variables 
(CFID,CFTOKEN,sessionId,JsessionId) for 2 different applications but underneath 
they are 2 different memory pools.

Why I want to know this is because I want to retain some information when 
switching between Application A and Application B.

In Application A I login, if I then request a page from Application B I want 
Application B to see I'm already logged in (sort of Single Sign on). So

in App A I log in;
I store the jsessionId along with a value "1" for login in a table 
"users:login";
I send id=#jsessionId# as a URL parameter to the request of a page in App B;
in App B I lookup the value of login using the value of URL.id;
If found I know I'm logged in and change users:login to the value of jsessionId 
in Application B.

If I go back to app A I do the same check on table users:login so I don't lose 
my login status when I switch from App A to App B and vice versa,

So this works event thouigh the ids for Application A and Application B are 
identical... Is this a failsafe approach? I don't knowe much about SSO so I am 
curious about your comments.

Shoot at it 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308483
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to