Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-July-05, 04:46 PM   #1 (permalink)
Apex Tech Maniac Supreme
jhoop2002's Avatar
Default locking out a user with asp

Does anyone know how using asp or .net to set up a login page so that if you try to login 3 times and don't login correctly you get locked out of being able to login. So like you would have to response to an automatic email, or just wait for 24 hours or something.
jhoop2002 is offline     Reply With Quote
Sponsored Links
Old 13-July-05, 10:05 PM   #2 (permalink)
Apex Tech God
CubanConnectionZ's Avatar
Thumbs up

Quote:
Originally Posted by jhoop2002
Does anyone know how using asp or .net to set up a login page so that if you try to login 3 times and don't login correctly you get locked out of being able to login. So like you would have to response to an automatic email, or just wait for 24 hours or something.


Thats a good question, and a neat lil trick for the user be like i can't keep trying to log in\on.
CubanConnectionZ is offline     Reply With Quote
Old 13-July-05, 11:16 PM   #3 (permalink)
Apex Tech God
Zer0s's Avatar
Default



Just playing, figured ive been giving crap out to everyone else, thought i'd share with you.
Zer0s is offline     Reply With Quote
Old 14-July-05, 03:47 PM   #4 (permalink)
Apex Tech God
CubanConnectionZ's Avatar
Thumbs up

If you going to do it do it right.



Attached Thumbnails
locking_out_a_user_with_asp-cuban_wisdom_watermark_1_.jpg.jpg
Views:	16
Size:	54.0 KB
ID:	25886  
CubanConnectionZ is offline     Reply With Quote
Old 14-July-05, 04:34 PM   #5 (permalink)
'Da Doctor of Funk
FunkyFresh's Avatar
Default

Quote:
Originally Posted by jhoop2002
Does anyone know how using asp or .net to set up a login page so that if you try to login 3 times and don't login correctly you get locked out of being able to login. So like you would have to response to an automatic email, or just wait for 24 hours or something.

I did this with ASP and SQL Server a couple years back. I used two tables in the database for this, similar to the following:

"User" table fields (and data types)
  • Username (varchar)
  • Password (varchar)
  • LockedOut (bit/boolean)
  • [...all the other fields like unique ID, email address, etc.]

"LogonAttempts" table fields (and data types)
  • AttemptedUsername (varchar)
  • AttemptedPassword (varchar) [this can help you to see if the user had Caps Lock on or something]
  • AttemptedDateAndTime (date/time)
  • LogonSuccessful (bit/boolean)
  • [...all the other fields like unique ID, remote IP, etc.]

Basically, every time someone attempts to log in, you record the login attempt in the LogonAttempts table in the database.

When a user tries to log in, do the following:
If the user is already locked out (meaning User.LockedOut is true), display a message saying so.
If the user is NOT locked out, check to see if the username/password is correct.
If it is correct, let them in*. If not*, run a query to see whether their last 3 times were all unsuccessful.
If the last 3 times were all unsuccessful, set User.LockedOut to true.

*This is where you would record the logon attempt, to see if LogonSuccessful would be true or false.

If I can explain any part of this or help with any of the queries, just let me know!
FunkyFresh is offline     Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
XP user problem - adding admin user vortecfiero Other PC Problem / Help 1 05-September-06 10:47 AM
Help figuring out cpu locking phin3s AMD CPU/Motherboard OC 3 18-January-05 12:27 PM
Xp locking my files. Ben Windows OS Problems 2 11-March-04 05:39 AM
Locking up. Jones558 Other PC Problem / Help 6 08-September-03 07:08 PM
Is the locking strip really all that necessary phoeneous Case Modding 9 04-October-02 09:18 PM


All times are GMT -5. The time now is 06:06 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.18798 seconds with 10 queries