473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
http://www.mcmillans.com 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
ch***@mcmillans.com
Jul 19 '05 #1
2 1938
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" <ha****@computekdirect.com> wrote in message
news:Y6*******************@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
http://www.mcmillans.com 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
ch***@mcmillans.com

Jul 19 '05 #2
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.

--

ca******************************@hotmail.com

(remove Tony Blair from office to contact me)
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayne Smith | last post by:
Applies to: Microsoft FrontPage 2000, Microsoft Access 2000, IIS 5.0 Operating System: Microsoft Windows 2000 Professional I am trying to protect a portion of a web site by allowing users to...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
1
by: Friends | last post by:
Hi I need to set security for row level but not based on Database user's login. It should be based on the user table login. For the particular user I need to allow only the particular records to...
10
by: Pete | last post by:
I have used Visual Studio 2005 to create a website. I set up standard login page using standard procedures. Nothing fancy or out of the ordinary, just standard procedures described in any "Login...
1
by: xcelmind | last post by:
Hello Dev. Guru, I want to at this time introduce myself. I am Stanley Ojadovwa by name. I’m a freelance and a newbie in web application development. I’m currently using ASP as my application...
9
by: Ben | last post by:
Hello, I'll bet this has been asked a million times but I can't seem to find a thread that gives the clear example I need. This PC has MySQL and IIS configured and running. The MySQL database is...
13
JodiPhillips
by: JodiPhillips | last post by:
G'day, I have a silly and simple problem that I need some guidance with. Due to the way our network is set up, I am unable to use the group permissions for Access and have had to implement log...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
4
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.