My suggestion is to have the form submit to itself.  I do all my forms
that way and it makes it much easier to pass the form data back to
itself in case of errors.

Then, in the application.cfm, I do the login checks.

I would also suggest copying these files to backup, then rebuilding each
step one piece at a time.  Most likely, it's a simple problem, but you
are too close to it to see.

If you are interested, I can dig up one of my form-based login methods
and mail it to you.

M!ke 

-----Original Message-----
From: Jack Benson [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 28, 2005 12:19 PM
To: CF-Talk
Subject: Re: redirection/user authentication

Ben - tried that as well. Login.cfm doesn't have any cflocation tags in
it, and I've now removed all of them from the application.cfm file - but
I'm still getting that URL redirection exceeded problem. 

Here's the whole file again, as altered:

<cfsetting showdebugoutput="no">
<cfapplication name="02133" sessionmanagement="Yes"
setclientcookies="Yes" applicationtimeout="#CreateTimeSpan(0,0,3,0)#">
<cfparam Name="Application.DSN" Default="MassInc2"> <!--// set this
equal to your IP address if yyou want to enter live debugging mode
//---> <cfparam name="Request.Debug" default="">

<cfparam Name="Application.SearchCollectionName" Default="02133">



<!--- check if user has logged out --->
   <cfif IsDefined("Form.logout")>
      <cflogout>
   </cfif>

<!--- check if user is logged in --->
<cfset currentlocation = GetFileFromPath(getBaseTemplatePath())>
<cfif  currentlocation neq "login.cfm">
  <cfif GetAuthUser() eq "">
                <cfinclude template="login.cfm">
         <cfabort>
        </cfif>
</cfif>


Login.cfm is just a simple form, which on submission goes to a
login2.cfm page with the cflogin code. But I'm getting stopped before I
can start to load login.cfm. 

My knowledge gets more than fuzzy when you start getting into sessions
and cookies and such - is there a problem with the code I've got at the
top of my application.cfm file? 

There's a parent directory above the one where I'm locating this
application, and that also has an application.cfm file - but it's just
session activation, no cflocation tags or any other funny business.
Would that be causing any problems?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200255
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to