St�phane As cflogin is now tied to sessions and sessions are Usually 1 per machine I this may explain why you are loosing sessions when/if you logon a second time on the same machine. If you have 2 different browsers, say Nutscrape and I.e. see if you can maintain 2 separate sessions that way.
HTH Kola >> -----Original Message----- >> From: St�phane_Bisson [mailto:[EMAIL PROTECTED] >> Sent: 06 August 2003 05:52 >> To: CF-Talk >> Subject: cflogin with CFMX 6.1 and with many users does not work in the >> same browser! >> >> Yes the CFMX 6.1 fix my problem Sean, but I just discover something else >> that I did not see in MX 6 version.. >> cflogin in CFMX 6.1 make me crazy tonight... I don't know what's >> happening >> when I try to use the cflogin.... When I logon with Stef the first time >> is >> working fine, I can call all the services... I'm still in the same >> browser >> and now when I call a method... it tell me that my time out is over... so >> I >> reloggon in the same browser... and when I execute the same CFC method it >> tell me that I'm not loggon... I display... #getAuthUser()#... and it's >> null >> when I call the method in my facade service... if I open another browser >> is >> working well... and if I delete in the same browser the cookie and >> temporary >> files... it's working again after... >> >> I just think that the cflogin is getting lost when I logon with two >> different users in the same browser or the cflogin is timeout... it's >> seems >> that the user cannot reloggon on the same browser using cflogin... is >> someone else has experiment the same problem with CFMX 6.1... I would >> like >> to ear... >> >> By the way, I change all methods call to be static intead of storing them >> into the application scope... I'm still getting the same error... so to >> tell >> you more... >> >> Always in the same browser.... >> 1- I'm logging with the LoginGuest.cfm.. expiration time.. 3 min... >> 2- I invoke the method GetSlideShow and it's working fine >> 3- I see my cfoutput saying function: GetSlideShow getAuthUser()=Guest... >> it's perfect... >> 4- 1 minute later I'm loggin with the LoginStef.cfm >> 5- I invoke the method GetSlideShow and it's working fine >> 6- I see my cfoutput saying function: GetSlideShow >> getAuthUser()=Guest.... >> Wrong! I should see getAuthUser()=Stef!!!! How come! >> >> I'm doing a <cflogout> before I <cflogin... it does not help... >> >> I need cflogin to work correctly when I'm in the same browser when I >> login >> with different users... do I need to delete the cookie of the previous >> user!!! otherwise I will need to keep my session verification to see if >> the >> user is still logon... I'm afraid now to use cflogin I guest! >> >> Stephane >> >> >> >> >> ----- Original Message ----- >> From: "Sean A Corfield" <[EMAIL PROTECTED]> >> To: "CF-Talk" <[EMAIL PROTECTED]> >> Sent: Tuesday, August 05, 2003 4:21 AM >> Subject: Re: CFC instances with cffunction roles="!!!" problem! >> >> >> > It sounds like you're encountering some variant of the "page context >> > bug" - I suggest you upgrade to CFMX 6.1 and see if the problem goes >> > away (since CFMX 6.1 fixes the page context bug and also changes how >> > cflogin works). >> > >> > On Monday, Aug 4, 2003, at 23:09 US/Pacific, St�phane_Bisson wrote: >> > >> > > 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

