473,465 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Patterns in writing Login Page

Hello All,
I would like to learn the well accepted patterns in developing the Login
page.
Could you please let me know what your experience are in this area.

The ones I have seen.

1) Usernames and Passwords are brought into in-memory-cache at application
startup and being maintained in the middle tier by the
login/adduser/updateuser methods as appropriate

Pros: A quick response and less burden on the persistance store(Database
or whatever)
Cons:. If the user list is a large then its not so brilliant way of doing it
2) A stored procedure or a SQL statment used to retrieve the Password for a
user and then compared with the one entered by user.

Pros: simplicity and scalability and could be well used in server farms
with load balancing
Cons: May be little more frequently hitting the database(but I still see
it as justifiable)
A bit slower than the previous approach. As the operation is a
small one it should be very good

Looks like I am biased on the second approach. I would love to hear your
opinions.

Thanks
Sridhar
Nov 18 '05 #1
1 983
I haven't really heard of anyone trying to use the first approach, due to of
course the whole scalability issue. Issuing a SQL statement isn't that time
consuming that you are going to see any difference in response time from the
user's perspective.

"Sridhar panatula" <an********@microsoft.com> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Hello All,
I would like to learn the well accepted patterns in developing the Login
page.
Could you please let me know what your experience are in this area.

The ones I have seen.

1) Usernames and Passwords are brought into in-memory-cache at application
startup and being maintained in the middle tier by the
login/adduser/updateuser methods as appropriate

Pros: A quick response and less burden on the persistance store(Database or whatever)
Cons:. If the user list is a large then its not so brilliant way of doing it

2) A stored procedure or a SQL statment used to retrieve the Password for a user and then compared with the one entered by user.

Pros: simplicity and scalability and could be well used in server farms with load balancing
Cons: May be little more frequently hitting the database(but I still see
it as justifiable)
A bit slower than the previous approach. As the operation is a
small one it should be very good

Looks like I am biased on the second approach. I would love to hear your
opinions.

Thanks
Sridhar

Nov 18 '05 #2

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

Similar topics

1
by: Google Mike | last post by:
Tell me if this can be done, and if I have a misconception here. I am writing an app that will be served up in an app farm, and therefore I need to move the session information to the client, not...
2
by: Design Pattern Catalog | last post by:
Thank you for your interest in "Design Patterns: Elements of Reusable Object-Oriented Design", by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. This message answers several...
3
by: Jack | last post by:
Hi, I have the following code as a part of authenticating a system. If Rs.eof Then Session("Authenticated") = 0 Response.Write "Sorry, your userid or password did not match" Response.Write...
1
by: Jay | last post by:
The GOF text is widely considered the definitive book on the topic. Design Patterns: Elements of Reusable Object-Oriented Softare, Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides ...
2
by: Matthius | last post by:
Greetings, I am a database guys trying to get into C# and design patterns. I really like the "Head first design patterns" book but don't like that it has samples in java. Is anyone interested...
13
by: John Salerno | last post by:
Here are a few I'm considering: Design Patterns Explained : A New Perspective on Object-Oriented Design (2nd Edition) (Software Patterns Series) by Alan Shalloway Design Patterns C# by...
2
by: philipp | last post by:
Hi I want to write a customControl, which shows a login-component containing textboxes for the username and password and a login-button. As soon as a user logs in, the textboxes and the button...
2
by: NotGiven | last post by:
I am new to patterns and want to learn how to implement the PAGE CONTROLLER model for a web site that has log-in and where the pages are dynamic database driven pages. I will have many questions...
24
by: John Salerno | last post by:
Since Python does so many things different, especially compared to compiled and statically typed languages, do most of the basic design patterns still apply when writing Python code? If I were to...
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
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,...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.