I have been really struggling with this login thing. I really need some help. There must be something I am really not understanding about CFLOGIN. I've attached a copy of my Application.cfc and other templates. What happens is that if you start with a fresh session, you can link to the login screen from the home page, enter the login, then the next page (to which the form posts) is empty. Now, if I go back to the home page (up one level in the directory), then request the login page, I see nothing again. Finally, if I change the address bar to point to my logout page, I get logged out, it returns me to the home page, and I can now link to the login page. So, it appears that once I am logged in, something very bad is happening. What am I missing?
Note that the index page is one level higher in the directory structure from all the other pages I am referencing in this post, including the Application.cfc, and that they are all in the same directory. you can get to my home page at http://www.changent.com/rr/index.html. to login, use help/me (this will only last until i have an answer) to logout, go to http://www.changent.com/rr/app/logout.cfm. Your help is really appreciated! Attach Code Application.cfc ------------------- <cfcomponent output="false" displayname="Application"> <cfset this.name="realtorreality" /> <cfset this.applicationtimeout = CreateTimeSpan(0,0,10,0) /> <!---<cfset this.applicationtimeout = CreateTimeSpan(2,0,0,0) />---> <cfset this.sessionmanagement = "true" /> <cfset this.sessiontimeout = CreateTimeSpan(0,0,10,0) /> <cfset this.setclientcookie = "true" /> <cfset This.loginstorage="session"> <cffunction name="onApplicationStart" access="public" output="false"> <cfset application.Datasource_RR_Prod = "mssqlcf_rr_prod"> </cffunction> <cffunction name="onSessionStart" access="public" output="false"> </cffunction> <cffunction name="onRequestStart" access="public" output="false"> <cfargument name = "request" required="true"/> <cfif request EQ "/rr/app/register.cfm"> <cfinclude template="register.cfm"> <cfabort> </cfif> <cfif request EQ "/rr/app/logout.cfm"> <cfinclude template="logout.cfm"> <cfabort> </cfif> <cflogin> <cfif NOT IsDefined("cflogin")> <cfinclude template="account_login.cfm"> <cfabort> <cfelse> <cfif cflogin.name IS "" OR cflogin.password IS ""> <cfset errorMessage="You must enter both your email and password."> <cfset errorCode="2"> <cfinclude template="account_login.cfm"> <cfabort> <cfelse> <cfquery datasource="#application.Datasource_RR_Prod#" name="loginQuery"> SELECT r.password FROM realtors r WHERE r.biz_email = <cfqueryparam cfsqltype="cf_sql_varchar" value="#cflogin.name#"> </cfquery> <cfif loginQuery.RecordCount EQ "1" AND loginQuery.password EQ cflogin.password> <cfloginuser name="#cflogin.name#" Password = "#cflogin.password#" roles="User"> <cfelse> <cfset errorMessage="Your login information is not valid. Please Try again. Userid=#cflogin.name#. Password=#cflogin.password#."> <cfset errorCode="2"> <h2>credentials invalid.</h2> <cfinclude template="account_login.cfm"> <cfabort> </cfif> </cfif> </cfif> </cflogin> </cffunction> <cffunction name="onRequest" access="public" output="false"> </cffunction> <cffunction name="onRequestEnd" access="public" output="false"> </cffunction> <cffunction name="onSessionEnd" access="public" output="false"> <cflogout> </cffunction> <cffunction name="onApplicationEnd" access="public" output="false"> </cffunction> <cffunction name="onError" access="public" output="false"> <cfargument name="Exception" type="Any" required="true" /> <cfargument name="EventName" type="String" required="true" /> <cfset errorType = "Unknown"> <cfset errException = #Exception#> <cfset errEvent = #EventName#> <!--- Handle Exceptions ---> <cfif IsDefined("Exception.type") AND Exception.type EQ "Application"> <!--- <cfset request.common.sendMail("[EMAIL PROTECTED]", "Application", Exception, EventName) /> ---> <cfset errorType = "Exceptions"> <cfinclude template="../app/onError.cfm" /> <cfabort> </cfif> <!--- Handle Validation errors ---> <cfif IsDefined("Exception.type") AND (Exception.type EQ "Validation")> <cfset errorType = "Validation"> <cfinclude template="../app/onError.cfm" /> <cfabort> </cfif> <cfif IsDefined("Exception.type") AND (Exception.type EQ "Expression")> <cfset errorType = "Expression"> <cfinclude template="../app/onError.cfm" /> <cfabort> </cfif> <!--- Handle anything else that slips through ---> <cfinclude template="../app/onError.cfm" /> <cfthrow object="#exception#" /> </cffunction> <cffunction name="onMissingTemplate" access="public" output="false"> </cffunction> </cfcomponent> account_login.cfm ------------- <cfparam name="loginAction" default="account_overview.cfm"> <cfparam name="errorMessage" default=""> <cfparam name="errorCode" default="0"> <cfoutput> application.Datasource_RR_Prod=#application.Datasource_RR_Prod#<br /> <cfif isDefined("FORM.login")>Form.login isDefined<br /><cfelse>Form.login isNotDefined<br /></cfif> errorCode=#errorCode# errorMessage=#errorMessage# </cfoutput> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Login - Realtor Reality</title> <link href="../styles.css" rel="stylesheet" type="text/css" /> </head> <body id="bodyId"> <table width="980" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="../images/header.png" border="0" usemap="#Map" /></td> </tr> <tr valign="top"> <td height="35" background="../images/banner.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="317" height="27" valign="top"> </td> <td width="663" height="27" class="bannerText"> <span class="footerText"><a href="#">XXXX</a> </span>|<span class="footerText"> <a href="#">YYYY</a> </span>|<span class="footerText"> <a href="#">ZZZZ</a></span></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="317" valign="top" background="../images/left-bg.png"> <div style="padding-left:40px; padding-bottom:20px;"> <p>Temporary Navigation</p> <p><a href="../index.html">HOME</a><br /> <a href="account_login.cfm">My Account</a><br /> <a href="account_login.cfm">Login</a> <br /> <a href="account_edit.cfm">Edit My Account Information</a> <br /> <a href="account_roster.cfm">View Client Roster</a> <br /> <a href="account_roster_edit.cfm">Edit Client Roster</a> <br /> <a href="../seminars.html">Seminars</a><br /> <a href="../box_about.html">Business Tools in a Box</a><br /> <a href="../box_about.html">About Business Tools in a Box</a> <br /> <a href="../box_tool1.html">Tool 1: Processes</a> <br /> <a href="../box_tool2.html">Tool 2: Personal Brand</a> <br /> <a href="../box_tool3.html">Tool 3: Client Feedback</a> <br /> <a href="../faq.html">FAQ</a><br /> <a href="../contact.html">Contact</a></p> </div> </td> <td width="663" valign="top" bgcolor="#ECE8E0"><table width="663" border="0" cellspacing="0" cellpadding="25"> <tr> <td valign="top"> <!-- ************** BEGIN BODY CONTENT ************** --> <!--- Login form ---> <p> <span class="h1">My Account<br /> </span>Already have an account? </p> <cfoutput><form id="loginForm" name="form1" method="post" action="#loginAction#"></cfoutput> <table border="0" cellspacing="0" cellpadding="3"> <tr> <td><cfif errorCode EQ "2"><span class="error">Business E-mail</span><br /><cfelse>Business E-mail<br /></cfif> <label> <input name="j_username" type="text" id="bizemail" size="20" /> </label> </td> <td><cfif errorCode EQ "2"><span class="error">Password</span><br /><cfelse>Password<br /></cfif> <input name="j_password" type="password" id="password" size="20" /></td> </tr> <tr> <td><label> <input type="submit" name="button" id="button" value="OK" /> </label></td> <td><input name="login" type="hidden" id="login" value="Y" size="1" maxlength="1" /></td> </tr> <cfif errorCode NEQ "0"> <tr> <td colspan="2"><span class="error"><cfoutput>#errorMessage#</cfoutput></span></td> </tr> </cfif> </table> <span class="h1"><br /></span> Forget your password? <a href="#">Click here</a><br /> Don't have an account? <a href="../app/register.cfm">Register here </a> </form> <p> </p> <!--- /Login form ---> <!--- Register form ---> <!--- /Register form ---> <!-- ************** END BODY CONTENT ************** --></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="27" background="../images/footer.png"><div align="center" class="footerText"><a href="../index.html" class="footer">Home</a> | <a href="../my_account.html" class="footer">My Account</a> | <a href="../seminars.html" class="footer">Seminars</a> | <a href="../box.html" class="footer">Business Tools in a Box</a> | <a href="../faq.html" class="footer">FAQ</a> | <a href="../contact.html" class="footer">Contact</a></div></td> </tr> <tr> <td height="100" background="../images/footer-shadow.png"> </td> </tr> </table> <map name="Map" id="Map"><area shape="rect" coords="49,14,197,92" href="../index.html" /> </map></body> </html> account_overview.cfm ------------------------------ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <link href="../styles.css" rel="stylesheet" type="text/css" /> </head> <body id="bodyId"> <cfoutput> <h2>i am here</h2><br /> GetAuthUser()=#GetAuthUser()#<br /> </cfoutput> <table width="980" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="../images/header.png" border="0" usemap="#Map" /></td> </tr> <tr valign="top"> <td height="35" background="../images/banner.png"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="317" height="27" valign="top"> </td> <td width="663" height="27" class="bannerText"> <span class="footerText"><a href="#">XXXX</a> </span>|<span class="footerText"> <a href="#">YYYY</a> </span>|<span class="footerText"> <a href="#">ZZZZ</a></span></td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="317" valign="top" background="../images/left-bg.png"> <div style="padding-left:40px; padding-bottom:20px;"> <p>Temporary Navigation</p> <p><a href="../index.html">HOME</a><br /> <a href="account_login.cfm">My Account</a><br /> <a href="account_login.cfm">Login</a> <br /> <a href="account_edit.cfm">Edit My Account Information</a> <br /> <a href="account_roster.cfm">View Client Roster</a> <br /> <a href="account_roster_edit.cfm">Edit Client Roster</a> <br /> <a href="../seminars.html">Seminars</a><br /> <a href="../box_about.html">Business Tools in a Box</a><br /> <a href="../box_about.html">About Business Tools in a Box</a> <br /> <a href="../box_tool1.html">Tool 1: Processes</a> <br /> <a href="../box_tool2.html">Tool 2: Personal Brand</a> <br /> <a href="../box_tool3.html">Tool 3: Client Feedback</a> <br /> <a href="../faq.html">FAQ</a><br /> <a href="../contact.html">Contact</a></p> </div> </td> <td width="663" valign="top" bgcolor="#ECE8E0"><table width="663" border="0" cellspacing="0" cellpadding="25"> <tr> <td valign="top"> <!-- ************** BEGIN BODY CONTENT ************** --> <p><span class="h1">MY ACCOUNT</span> is where you will control and view the entire client feedback process, from <br /> inviting them to share their expectations before the sale, through summarized reports of all feedback <br /> collected from your clients. </p> <p>First, <a href="account_roster_edit.cfm">enter</a> your clientsâ names and e-mail addresses. You can add more clients at any time. This process is both easy and confidential. <a href="../faq.html">FAQ</a></p> <p>Once you have entered your clients, view them in your <a href="account_roster.cfm">Client Roster</a>. Here you can track each <br /> oneâs point in the process, and whether reports are available. <a href="../faq.html">FAQ</a></p> <p>From the Client Roster, youâll choose when to invite them take the pre-sale and post-sale surveys, and <br /> youâll be able to view and manage all information related to you clients. <a href="../faq.html">FAQ</a><br /> </p> <p><a href="account_roster_edit.cfm">Add Clients</a></p> <p><a href="account_roster.cfm">View Roster</a><br /> </p> <!-- ************** END BODY CONTENT ************** --> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="27" background="../images/footer.png"><div align="center" class="footerText"><a href="../index.html" class="footer">Home</a> | <a href="../my_account.html" class="footer">My Account</a> | <a href="../seminars.html" class="footer">Seminars</a> | <a href="../box.html" class="footer">Business Tools in a Box</a> | <a href="../faq.html" class="footer">FAQ</a> | <a href="../contact.html" class="footer">Contact</a></div></td> </tr> <tr> <td height="100" background="../images/footer-shadow.png"> </td> </tr> </table> <map name="Map" id="Map"><area shape="rect" coords="49,14,197,92" href="../index.html" /> </map></body> </html> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:310709 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

