Login Success Every Time is a Bad Thing!!

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. Web Success
      Income For Life ™ - MY.WS
    2. 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...
    3. 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...
    4. 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.
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default 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

  10. #9

    Default Re: Login Success Every Time is a Bad Thing!!

    Thanks for the help guys!!
    Xylum Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139