Thanks Patti. It wasn't my specific problem, but is an excellent thread with related issues.
----- Original Message ----- From: "Patti G. L. Hall" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 11:54 PM Subject: Re: CFLOGIN Problems > Guys read this thread; it may help you out. I have a feeling that the issue > you were having would have been answered if certain jedi masters weren't > away this week. > > I have been having a problem with cflogin myself. I believe it is close to > what Frank noted and this post provides a solution to my problem. I haven't > yet implemented the fix (don't name your form fields j_username or > j_password, no matter what the docs say), but I think it is going to work. > > Be careful of the wrapping. > > http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=7&threadid= > 375144&highlight_key=y&keyword1=cflogin > > -Patti > > Barry Moore wrote: > > > Frank, > > > > You are not imagining things. I had some cflogin code that I had written > > during Beta test that worked just fine. I went to use it again last night on > > a release version of CFMX and it does not work anymore. CF does not seem to > > remember the login info from one page to the next. It logs the user in just > > fine, but when they go to a new page all the login variables are gone. > > > > If you find an answer let me know, I will do the same. > > > > Barry > > > > -----Original Message----- > > From: Frank Mamone [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 24 July 2002 3:48 AM > > To: CF-Talk > > Subject: CFLOGIN Problems > > > > > > I am trying out the functionality of the CFLOGIN tsg snf it doesn't seem to > > work as advertised. > > > > According to the docs "Code in thr cflogin tag only executes if there is no > > user is logged in". > > > > The system authenticates and displays the protected page but when accessing > > another page in the same dir the same code re-executes and doesn't see the > > form login vars and boots me to the login page. > > > > Am I missing something? Here is part of the code in Application.cfm: > > > > Thank you all. > > > > <cfset AllowedRoles = "Domain Users"> > > > > <cflogin> > > <cfif isdefined("form.password") and isdefined("form.username")> > > > > <!--- WE NEED TO PROVIDE THIS SOMEHOW. SIMILAR TO NT LOGIN WOULD DO. ---> > > <CFSET Request.myDomain = "STS1"> > > <!--- TRY TO AUTHENTICATE USER ---> > > <cfinvoke > > component = "NTSecurity" > > method = "authenticateUser" > > domain = "#Request.myDomain#" > > userid = "#form.username#" > > passwd = "#form.password#" > > returnVariable = "Auth"> > > > > <cfif #Auth# IS "True"> > > <!--- SUCCESS ---> > > <cfset failed = "no"> > > <!---NOW LET'S CHECK WHAT GROUPS(roles) I HAVE ---> > > <cfinvoke > > component = "NTSecurity" > > method = "getUserGroups" > > domain = "#Request.myDomain#" > > userid = "#form.username#" > > passwd = "#form.password#" > > returnVariable = "MyGroups"> > > > > <cfoutput> > > <CFSET TheRoles ="#Replace('#MyGroups#',', ',',','All')#"> > > </cfoutput> > > > > <cfloginuser name="#form.username#" > > password="#form.password#" > > roles="#TheRoles#" > >> > > <CFELSE> > > > > <!----Did not pass authentication so redirect with message---> > > > > <cfset message = "There was a problem with your login."> > > <cflocation > > url="../../#LOGINPATH#?url=#cgi.script_name#&#cgi.query_string#&message=#mes > > sage#" addtoken="no"> > > </CFIF> > > > > > > > > <CFELSE> > > <!---No FORM login vars so redirect to login page ---> > > <cfset message = ""> > > <cflocation > > url="../../#LOGINPATH#?url=#cgi.script_name#&#cgi.query_string#&message=#mes > > sage#" addtoken="no"> > > > > > > </CFIF> > > <cflogin> > > > > > > > ______________________________________________________________________ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

