Re: Need help with login script...

2003-03-23 Thread Dave Carabetta
I am now having trouble with the condition of if the correctLogin variable is false or undefined or if the form.userName is undefined. I get either a loop (when I dont have the cfabort in there) or a timeout (when I take those out. Based on what you pasted in, I re-worked the login code a

Re: Need help with login script...

2003-03-23 Thread Candace Cottrell
Thanks Dave, I think I see what I did wrong. The addtoken attribute needed to be specified to prevent Cold Fusion from automatically appending #URLToken# to CFLOCATION URLs. Why would I not use cfabort there? When is a good time to use cfabort? It seems like the exit sub function in VB. Am I

Re: Need help with login script...

2003-03-23 Thread Dave Carabetta
Why would I not use cfabort there? When is a good time to use cfabort? It seems like the exit sub function in VB. Am I mistaken? You don't need cfabort with a cflocation because when you use cflocation, the page that is currently executing stops because of the page redirect. You've effectively

Need help with login script...

2003-03-22 Thread Candace Cottrell
For some reason, I keep getting a syntax error on this login. Application.cfm: !--- Page: Application.cfm --- CFAPPLICATION NAME=ResDBApp CLIENTMANAGEMENT=Yes SESSIONMANAGEMENT=Yes SETCLIENTCOOKIES=Yes

RE: Need help with login script...

2003-03-22 Thread Ben Doom
: Candace Cottrell [mailto:[EMAIL PROTECTED] : Sent: Saturday, March 22, 2003 6:45 PM : To: CF-Talk : Subject: Need help with login script... : : : For some reason, I keep getting a syntax error on this login. : : Application.cfm: : : !--- : Page: Application.cfm : --- : : CFAPPLICATION NAME=ResDBApp

Re: Need help with login script...

2003-03-22 Thread Dave Carabetta
CFIF IsDefined(form.username) cfquery name=getUsers datasource=resDB Select * from USERS Where UserID = '#form.UserName#' /cfquery cfif getUsers.recordCount EQ 0 cfset IsAuthenticated = FALSE There is no user by that name.br a href=mailto:[EMAIL PROTECTED]Get

RE: Need help with login script...

2003-03-22 Thread Candace Cottrell
Software, Inc : -Original Message- : From: Candace Cottrell [mailto:[EMAIL PROTECTED] : Sent: Saturday, March 22, 2003 6:45 PM : To: CF-Talk : Subject: Need help with login script... : : : For some reason, I keep getting a syntax error on this login. : : Application.cfm: : : !--- : Page

RE: Need help with login script...

2003-03-22 Thread Candace Cottrell
Software, Inc : -Original Message- : From: Candace Cottrell [mailto:[EMAIL PROTECTED] : Sent: Saturday, March 22, 2003 6:45 PM : To: CF-Talk : Subject: Need help with login script... : : : For some reason, I keep getting a syntax error on this login. : : Application.cfm: : : !--- : Page

Re: Need help with login script...

2003-03-22 Thread Candace Cottrell
Thanks Dave... I implemented the changes. I need all the help I can get (LOL) I am now having trouble with the condition of if the correctLogin variable is false or undefined or if the form.userName is undefined. I get either a loop (when I dont have the cfabort in there) or a timeout (when I