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
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
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
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
: 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
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
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
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
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
9 matches
Mail list logo