Post the content of your Login.cfm...that may be causing you problems. -------------- Ian Skinner Web Programmer BloodSource Sacramento, CA
-----Original Message----- From: Angel Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 9:48 AM To: CF-Community Subject: RE: CFLOGIN oddity Ok..so..I cannot use CFLOCATION from within the CFLOGIN tag to redirect the user. So after they succesfully login...they just see a big white page. How do I...why doesn't it just go to the page that it's supposed to go to? I shouldn't have to do a redirect if I have CFLOGIN in the application.cfm page. It should just load application.cfm....run through the CFINCLUDE file that has the CFLOGIN info...and then go onto the appropriate CFM page. I mean this seems so BRUTALLY simple! WHYYYYY am I getting so much problems. Geez. This is straight out of WACK. I can't believe they just have the page hanging...it shouldn't just go to a white page...that's crazy. Application.cfm is : <cfapplication name="DavidToms" clientmanagement="yes" sessionmanagement="yes" setclientcookies="no" setdomaincookies="no"> <CFSET Application.DSN = "DavidToms"> <CFINCLUDE template="forceuserlogin.cfm"> And the forceuserlogin.cfm page is: <CFLOGIN> <!--- If the user hasn't gotten the login form yet, display it ---> <CFIF NOT (IsDefined("FORM.Username") AND IsDefined("FORM.password"))> <CFINCLUDE TEMPLATE="Login.cfm"> <CFABORT> <CFELSE> <!--- Find record with this Username/Password ---> <!--- If no rows returned, password not valid ---> <CFQUERY NAME="GetUser" DATASOURCE="#application.dsn#"> SELECT userid,username,fname,lname, roles FROM tblusers WHERE Username = '#Form.username#' AND Password = '#Form.password#' </CFQUERY> <!--- If the username and password are correct... ---> <CFIF GetUser.RecordCount EQ 1> <CFLOGINUSER NAME="#GetUser.userid#" PASSWORD="#FORM.Password#" ROLES="#GetUser.Roles#"> <!--- Update user table lastlogin field with current date and time ---> <CFSET form.lastlogin = #Now()#> <cfset form.userid = #getuser.userid#> <CFUPDATE datasource="#application.dsn#" tablename="tblusers" formfields="userid,Lastlogin"> <!--- Otherwise, re-prompt for a valid username and password ---> <CFELSE> Sorry, that username and password are not recognized. Please try again. <CFINCLUDE TEMPLATE="Login.cfm"> <CFABORT> </CFIF> </CFIF> </CFLOGIN> -Gel -----Original Message----- From: Angel Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 12:39 PM To: CF-Community Subject: RE: CFLOGIN oddity Hmm...could it be because after cfloginuser I am doing a cflocation back to the index.cfm page? *removes cflocation* Yes..its the damned CFLocation tag. :( ARRGGHHH!! -Gel -----Original Message----- From: Angel Stewart [mailto:[EMAIL PROTECTED] Okies...I will cross post to cf-talk then. I just thought It was something simple I was doing wrong. But I've checked and rechecked..and it just isn't working. It always asks me to login even though I should be logged in. *frustrated sigh* -Gel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
