This is pretty hard to explain my problem... but I will try my best to
explain it... so I start with this..

1- I have a facade CFC call PictureServiceFacade.cfm that Flash is calling
2- I have the real CFC instantiated into an Application scope like
PictureService.cfc
3- The Flash Movie is calling the GetSlides in the PictureService.cfc
service facade
4- The real PictureService.cfc method GetSlides mention this...
         <cffunction name="GetSlides" access="remote" returnType="query"
roles="guest_role,member_role"
5- The timeout for a cflogin is 10 sec
6- The timeout of Application var is 10 sec

So here's my problem... I'm being waiting for 60 second.. and I do this...

1- Logon as a guest... role=guest_role
2- Execute the cfinvoke to test the GetSlides method
3- It's working fine for the guest... I get the slide slow
4- 5 sec later I login as member Stef.... role=member_role... (I'm doing a
<cflogout> before the cflogin)
5- Execute the cfinvoke to test the GetSlides method
5- I got this error... Current user was not authorized to invoke this method

If I wait of 60 sec again... and I do this opposite.. like this...

1- Logon as a Member Stef... role=member_role
2- Execute the cfinvoke to test the GetSlides method
3- It's working fine for the Member.. I get the slide slow
4- 5 sec later I login with Guest role=guest_role...(I'm doing a <cflogout>
before the cflogin)
5-  I got this error... Current user was not authorized to invoke this
method

How come it's working like this with instances of CFC... I should probably
test it with a static CFC that I instantiate every time to see the
difference... I just understand that the "roles" is at their beginning in
ColdFusion...

By the way, I just test it with static CFC instance...  I just try to
instantiate my PictureService.cfc every time the facade is being called into
a "variables" scope.... and it's working fine... the guest and the member
can access my GetSlides method... but when I store them into a shared
scope... it's seems to be lost...I would like to know why!.... because when
I store my CFC in shared scope... it's seems to recognize only the user role
identify in my method the first time is being called!....

Stephane

----- Original Message ----- 
From: "St�phane_Bisson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 12:37 AM
Subject: Another question about cfloginuser attribute "roles".


> New question about cfloginuser attribute "roles". I try something tonight
and it seems that I cannot make it to work. So I will explain...
>
> I have a user "members" role and I have a user "guest" role. They both
login with their role... I want them both to be able to call my CFC methods
which is...
>
>  <cffunction name="GetSlides" access="remote" returnType="query"
roles="member_role,guest_role">
>
> It does not seems to work and I did not put any space between them!.... I
just hope that two different users like member and guest can be able to
> execute my methods with their own role! I'm always getting the error that
is not authorized... It's only the first CFC role that is valid... So in
this case
> the member can get the GetSlides... but the guest is unauthorized... I'm
missing something!
>
> Thanks
>
> Stephane
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to