ASP Login / Database Help.

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP Login / Database Help.

    I am needing some help with a few asp pages and a login script.

    Let me start by describing my project.

    I am trying to connect to a database and verify a users login and password,
    then based on that login information display 3 pages based on their login.

    On the home page if they are NOT logged in, I need it to display the login
    box, if they ARE logged in I want it to display Welcome Customer Name from a
    database called vcust.dbf which contains both the username and password
    fields.

    The two other pages will be based on the username (which is actually my
    customers customer number ... example '100001'). I am needing to display
    the customers account informaiton on one page from the vcust.dbf and their
    rental history on another page from records.dbf.

    To get a better idea of what I need, you can visit my site at
    [url]http://www.mcmillans.com[/url] and view the home page, the My Account page and the
    Rental History page.

    I am on a non-existant budget and am hoping to find someone who has some
    extra time and willing to donate an hour or two to help me with this. If so
    you are welcome to use my site on your resume or references.

    Thanks!

    Chris

    PS. Please email me if you have questions or can help me out at
    [email]chris@mcmillans.com[/email]


    harris Guest

  2. Similar Questions and Discussions

    1. Database/Login on own PC
      Hi I'm making a site, but do not have an online host yet. I want to make a login system, so I need a database. but when i want to set the site...
    2. Login Using to Access Database
      Hello - I wonder if anyone can help me with this 'simple' question? I need to login to an Access database using the surname and table ID. The...
    3. Best practice for login screen using database
      I have an c# as.net app that check if the user exist in a USERS table, that part is ok but now I need to pass the user ID no the next page beacuse...
    4. Cannot open database requested in login
      I currently am trying to connect to a SQL Server 2000 database from an ASP page and a Java connection. I can connect to the database fine using ODBC...
    5. Database Login Tool
      Hi, I am looking for an application, preferably Free, that will allow me to have a clients area on my site. I would have a list of usernames and...
  3. #2

    Default Re: ASP Login / Database Help.

    Use session variables. I'm guessing you have a userID or loginID table in
    your database. when they log in it should verify the form fields with the
    database table login id and password. Set a session variable to be their ID
    (i.e. customer #, assuming it's unique):
    for example, session(cusID) = tableName("customerNumberFieldName")
    So on the home page you would have something like:
    If session(cusID) <> "" Then
    ' write out page here with account info from vCust.dbf, rental history, etc
    else response.write "Enter Login ID: <input type='text' name='loginID'>
    Password: <input type='text' name='password'>"
    End If

    Hope this helps!

    "harris" <harris@computekdirect.com> wrote in message
    news:Y6arc.23613$Wg6.16699@bignews5.bellsouth.net. ..
    > I am needing some help with a few asp pages and a login script.
    >
    > Let me start by describing my project.
    >
    > I am trying to connect to a database and verify a users login and
    password,
    > then based on that login information display 3 pages based on their login.
    >
    > On the home page if they are NOT logged in, I need it to display the login
    > box, if they ARE logged in I want it to display Welcome Customer Name from
    a
    > database called vcust.dbf which contains both the username and password
    > fields.
    >
    > The two other pages will be based on the username (which is actually my
    > customers customer number ... example '100001'). I am needing to display
    > the customers account informaiton on one page from the vcust.dbf and their
    > rental history on another page from records.dbf.
    >
    > To get a better idea of what I need, you can visit my site at
    > [url]http://www.mcmillans.com[/url] and view the home page, the My Account page and
    the
    > Rental History page.
    >
    > I am on a non-existant budget and am hoping to find someone who has some
    > extra time and willing to donate an hour or two to help me with this. If
    so
    > you are welcome to use my site on your resume or references.
    >
    > Thanks!
    >
    > Chris
    >
    > PS. Please email me if you have questions or can help me out at
    > [email]chris@mcmillans.com[/email]
    >
    >

    Robin Guest

  4. #3

    Default Re: ASP Login / Database Help.

    Robin wrote:
    > Use session variables. I'm guessing you have a userID or loginID table in
    > your database. when they log in it should verify the form fields with the
    > database table login id and password. Set a session variable to be their ID
    > (i.e. customer #, assuming it's unique):
    > for example, session(cusID) = tableName("customerNumberFieldName")
    > So on the home page you would have something like:
    > If session(cusID) <> "" Then
    > ' write out page here with account info from vCust.dbf, rental history, etc
    > else response.write "Enter Login ID: <input type='text' name='loginID'>
    > Password: <input type='text' name='password'>"
    > End If
    Personally I'd suggest using cookies. Session variables hog server
    memory and need to be timed out to stop the server running out of memory.

    I often get frustrated when I have several things on the go and a site
    times my login out for inactivity. If you use cookies to store the
    userid and password and check this on each page, the user can leave a
    browser inactive for hours (or days) and still not be timed out.



    --

    [email]captain_flackTONYBLAIRFROMOFFICE@hotmail.com[/email]

    (remove Tony Blair from office to contact me)
    Captain Flack Guest

  5. #4

    Default Re: ASP Login / Database Help.

    Here is something I put together that hopefully might give you some
    ideas:

    ASP Design Tips - Login Page
    [url]http://www.bullschmidt.com/devtip-loginpage.asp[/url]

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Consultant
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Devdex [url]http://www.devdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt 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