473,419 Members | 2,042 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,419 software developers and data experts.

Pin Login Application Using Asp


Hello Dev. Guru,
I want to at this time introduce myself. I am Stanley Ojadovwa by name.
I知 a freelance and a newbie in web application development. I知
currently using ASP as my application server technology with Microsoft
access as my database source.

Just as I have introduced myself, I知 a newbie in web application
development. I知 currently working on an application that will allow
students to check their results and admission status online, but they
will have to get a PIN Number or Code before they will be able to do
exactly that.

Now, what I have in mind is that a student will enter their names,
examination numbers and the PIN Code into a form and then click on the
submit button. The feedback after clicking on submit is that the
particular student examination records and status are queried from
that database and displayed for that student to see.

Validation Rules:

The application must display only the records that belong to that
student.
The PIN Code entered by the student must correspond to the one already
stored in the database.
The application must be in a way that the PIN Code cannot be used by
more than one student. That is if another student wants to use that PIN
Code, an error message should appear telling the student that the pin
code has been used by another student depending on how or what message
you want to display.
The PIN Code must not be used for more than a specified number of
times.

Now that was a brief overview of the kind of application I want to
develop. However, I知 having problem with its development. I decided to
write to see if there is a way you can help me out. You might have seen
the source code for such an application before now, please send it to
me or you may want to help me by writing a quick one of such
application, or a anything you have in mind regarding the application.

Anyway, I have gone ahead with its development. I will give a brief
idea of how far I have gone. What I did was to create a database with
three tables namely; PIN, LOGIN and RESULT. The PIN table contains all
the pin numbers which will be entered by the webmaster such that when
the student enters a particular pin code it will query that table to see
if the pin exist else it will tell the student that it is an invalid pin
code. If the pin exist in the PIN table the form input should be
submitted to the LOGIN table and then store the input in a cookies and
then be directed to another page which will query the RESULT table based
on the information stored in the cookies to bring out the particular
student痴 information.

To avoid to much details visit www.jambonline.org for a
sample of the kind of application I知 talking about.

I will really appreciate if I get a response from you regarding this
application. Thanks for your understanding and support.

See you at the top!

Stanley

Note: Below is a copy of the place I知 having a problem. I want to add
the form input into the login table if it does not already exist and
then direct them to Query_result page where their result will then be
sorted from the RESULT table. Also if the input is in the login table
already they should be redirected to Query_result page.

Incase you want a sample of the database, you can send me an email so
that I can attach it to the email back to you.I have already attached
some of the pages i have developed
+----------------------------------------------------------------+
| Attachment filename: prosessresult.txt |
|Download attachment: http://www.codecomments.com/attachme...postid=3480939 |
+----------------------------------------------------------------+
--
xcelmind
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jan 11 '07 #1
1 3033

"xcelmind" <xc*************@mail.codecomments.comwrote in message
news:xc*************@mail.codecomments.com...
>
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 server technology with Microsoft
access as my database source.
Access (aka MS Jet) is a poor choice for multi-user database applications.
If at all possible, you would be well-advised to use SQL Express, which is
free just like Jet is, but is a much more stable and capable database
engine.

Just as I have introduced myself, I'm a newbie in web application
development. I'm currently working on an application that will allow
students to check their results and admission status online, but they
will have to get a PIN Number or Code before they will be able to do
exactly that.

Now, what I have in mind is that a student will enter their names,
examination numbers and the PIN Code into a form and then click on the
submit button. The feedback after clicking on submit is that the
particular student examination records and status are queried from
that database and displayed for that student to see.

Validation Rules:

The application must display only the records that belong to that
student.
The PIN Code entered by the student must correspond to the one already
stored in the database.
The application must be in a way that the PIN Code cannot be used by
more than one student. That is if another student wants to use that PIN
Code, an error message should appear telling the student that the pin
code has been used by another student depending on how or what message
you want to display.
That is not a secure design! A message that tells the user their chosen PIN
is already in use, effectively gives away the secret half of some other
student's credentials! Anyone that knows the names of the other students
only needs to try each of them with the PIN s/he now knows in in use -- and
is guaranteed access to someone else's data in the course of such an attack.

Also, name is a poor choice for a login value, no guarantee of uniqueness.
Email is a better choice, otherwise, allow the user to choose a login (this
would be where you must prompt for another value to enforce uniqueness.)

If forcing unique PINs is intended as a work-around for same-named students,
it is an extremely poor tactic. Login is the public [or semi-private] half
of the credentials pair. Password is the exclusively private half. For
sensitive data, nothing should *ever* divulge the password to *anyone*. For
data that isn't really sensitive, mechanisms to recover a password by
sending it to its owner have become fairly accepted, but secure applications
will only provide a way to reset the password.

This authentication model is in place in litteraly thousands (if not
millions) of applications; it's proven and accepted. You'd likely be
further ahead to work-around the reasons you want to alter the model, and
leave the model itself intact.
The PIN Code must not be used for more than a specified number of
times.
Why?
Now that was a brief overview of the kind of application I want to
develop. However, I'm having problem with its development. I decided to
write to see if there is a way you can help me out. You might have seen
the source code for such an application before now, please send it to
me or you may want to help me by writing a quick one of such
application, or a anything you have in mind regarding the application.

Anyway, I have gone ahead with its development. I will give a brief
idea of how far I have gone. What I did was to create a database with
three tables namely; PIN, LOGIN and RESULT. The PIN table contains all
the pin numbers which will be entered by the webmaster such that when
Wait, the webmaster enters the PINs? What, then the user gets it on a slip
of paper handed-out in class, or via snail-mail? Eeesh, if you absolutely
must go this way, at the very least, cut the web admin people a break by
generating PIN values.

the student enters a particular pin code it will query that table to see
if the pin exist else it will tell the student that it is an invalid pin
code. If the pin exist in the PIN table the form input should be
submitted to the LOGIN table and then store the input in a cookies and
then be directed to another page which will query the RESULT table based
on the information stored in the cookies to bring out the particular
student's information.
Two tables unnecessarily complicates design, input and function. A single
table that stores login, password, and any other details that describe the
user, is a more workable design. You then query that one table for a row
with both login and password fields that match the submitted values... but
that's a generality...

To be efficient your design must consider some environmental factors, like
the source of results data, and how it will be associated with students.
Surely each student already has some unique identifier assigned by the
school; presumably results will be linked using that?

So [based on my assumptions] the scenario should be something like this:

1. A conceptual account exists for each student by virtue of enrollment;
2. Each account needs to be "activated" before it can be used to access
account-specific content to, prevent unauthorized access before credentials
have been established;
3. The process of activation involves verifying that the user is who he says
he is, and then establishing credentials;
3.a. Verification involves user input of info that will be known or
available to each respective student while at the same time, not commonly
known or available to others (test numbers from one or a few recent tests
should be a good fit here)
3.b. When establishing credentials, assign a login value if you absolutely
must, but let the user set the password.
4. Once an account is activated, users can view results;
4.a. Why not just list all available results in a list, so the user can
click a link, rather than needing some number;
As for whatever implememtation difficulties you may be having, you'll get
more answers if you provide:

1. A description of the problem; i.e., the error message, or what its not
doing that you think it should;
2. Just enough code to show the context of the problem (noting which line
throws the error, if any);
3. Which behavior or aspects you're having difficulty understanding;
-Mark

To avoid to much details visit www.jambonline.org for a
sample of the kind of application I'm talking about.

I will really appreciate if I get a response from you regarding this
application. Thanks for your understanding and support.

See you at the top!

Stanley

Note: Below is a copy of the place I'm having a problem. I want to add
the form input into the login table if it does not already exist and
then direct them to Query_result page where their result will then be
sorted from the RESULT table. Also if the input is in the login table
already they should be redirected to Query_result page.

Incase you want a sample of the database, you can send me an email so
that I can attach it to the email back to you.I have already attached
some of the pages i have developed
+----------------------------------------------------------------+
| Attachment filename: prosessresult.txt |
|Download attachment:
http://www.codecomments.com/attachme...postid=3480939 |
+----------------------------------------------------------------+
--
xcelmind
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jan 12 '07 #2

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

Similar topics

0
by: Yoni Gibbs | last post by:
Hi, I need to build a "login manager" using C#, for a desktop application. I am new to .NET, having previously only worked in COM, so please forgive my ignorance. What I need is a "login...
2
by: Beginner | last post by:
I know this is an old question, but searching all over the internet plus several MS security conferences, still haven't got a straight anwser. Basically, the login.aspx is on one dedicated server...
1
by: MichaelR | last post by:
I have an asp.net application using forms authentication. 1. It has a simple login page (login.aspx) that uses FormsAuthentication.RedirectFromLoginPage(. . . ). 2. My application has a logout...
19
by: Siobhan | last post by:
Hi What is the recommended way to store a user's database credentials across the pages of a web application so that each time the database is accessed the system doesn't have to ask them for their...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
0
by: barrybevel | last post by:
Hi, I'm trying to login to the www.vodafone.ie website using HttpWebRequest. It works fine with IE/Firefox and the .NET Web Control too, just not with my code. I think it's a redirect 302...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project用lanning, coding, testing,...

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.