Ask a Question related to Coldfusion Database Access, Design and Development.
-
Xylum #1
Login Success Every Time is a Bad Thing!!
Having a little trouble here. New to dreamweaver and coldfusion. Got my
registration page down. But my login accepts every username and password even
though I've got Log In User marked under server behaviors. It's good that I'm
getting a successful login, but not EVERY time any value is entered. It should
only allow a successful attempt if it matches my database of usernames and
passwords, correct? Any help is much appreciated. Thanks in advance.
Xylum Guest
-
Web Success
Income For Life ™ - MY.WS -
sendandload success
Hi All I got a form made in flash. I want to send my data to a asp page which puts the data into the DB. If I get a 'success' in flash it has to... -
Success!
I want to thank you all for all the help you've been in the past week while I've been trying to design & upload my small web site. I would love for... -
Setting user account login time restrictions
Is it not possible to restrict user login times under Windows XP Home? I have kids that I want to force to logoff after a certain time. -
Xylum #2
Login Success Every Time is a Bad Thing!!
Having a little trouble here. New to dreamweaver and coldfusion. Got my
registration page down. But my login accepts every username and password even
though I've got Log In User marked under server behaviors. It's good that I'm
getting a successful login, but not EVERY time any value is entered. It should
only allow a successful attempt if it matches my database of usernames and
passwords, correct? Any help is much appreciated. Thanks in advance.
Xylum Guest
-
Dan Bracuk #3
Re: Login Success Every Time is a Bad Thing!!
If you want success to be based on matches on your database, you have to query that database. Your post implies that you are not doing that.
Dan Bracuk Guest
-
mxstu #4
Re: Login Success Every Time is a Bad Thing!!
Hi Xylum,
You might get a better response to Dreamweaver questions in the Dreamweaver forums:
[url]http://www.macromedia.com/cfusion/webforums/forum/index.cfm?forumid=12[/url]
Good Luck
mxstu Guest
-
sattman #5
Re: Login Success Every Time is a Bad Thing!!
<cfquery name="anyname" .....>
select username, password
where username="#form.username#"
</cfquery>
<cfoutput query="anyname">
<cfif form.username is "#username#">
Login good.....do something
<cfelse>
Login bad....do something else
</cfif>
sattman Guest
-
BKBK #6
Re: Login Success Every Time is a Bad Thing!!
<cfquery name="loginQuery" datasource="my_DSN">
select username, password
where username=<cfqueryparam cfsqltype="CF_SQL_VARCHAR" maxlength="30"
value="#form.user_name#">
and password=<cfqueryparam cfsqltype="CF_SQL_VARCHAR" maxlength="10"
value="#form.psswrd#">
</cfquery>
<cfif loginQuery.Recordcount GT 0>
<cfloginuser ...etc etc>
<cfelse>
Login bad....do something else
</cfif>
BKBK Guest
-
Xylum #7
Re: Login Success Every Time is a Bad Thing!!
My session manager was NOT turned on in coldfusion. I'm still not quite sure
how to turn it on. But I did take this text out of one of the cold fusion help
topics and pasted it to the top of my login page and now my session manager for
that page is turned on. My Login now works. The text I took and pasted in the
code at the very top of my login page is as follows:
<CFAPPLICATION NAME="Name"
SESSIONMANAGEMENT="Yes">
Xylum Guest
-
Xylum #8
Re: Login Success Every Time is a Bad Thing!!
My session manager was NOT turned on in coldfusion. I'm still not quite sure
how to turn it on. But I did take this text out of one of the cold fusion help
topics and pasted it to the top of my login page and now my session manager for
that page is turned on. My Login now works. The text I took and pasted in the
code at the very top of my login page is as follows:
<CFAPPLICATION NAME="Name"
SESSIONMANAGEMENT="Yes">
Thanks for the help guys.
Xylum Guest
-



Reply With Quote

