Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > password attempts

Reply
Thread Tools

password attempts

 
 
bbawa1@yahoo.com
Guest
Posts: n/a
 
      04-20-2007
have a username and opassword text boxes and one login button. When I
type password it checks three times weather my username and password
is correct or not. After 3 failed attempts it gives me message that
Notify your administrator.

I used form Authnication. How can I count weather user attempts 3
times. My username and password is stored in database

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      04-21-2007
The easiest way is to set up a session variable and increment:

if(failedLogin)
Session("failedAttempts") = int.Parse(Session("FailedAttempts")) + 1;

You can then disable the account in the database when this hits three and
any time they try to log in after that kicks them.

A more full method is to have failed attempts in the database and increment
each time they fail, reset to 0 if succesful. If you like this model, the
easiest way to get it is to use the ASP.NET built in membership model. It
automatically does this for you.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> have a username and opassword text boxes and one login button. When I
> type password it checks three times weather my username and password
> is correct or not. After 3 failed attempts it gives me message that
> Notify your administrator.
>
> I used form Authnication. How can I count weather user attempts 3
> times. My username and password is stored in database
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change a users password without knowing the old password nor the answer to the password question AAaron123 ASP .Net 1 01-16-2009 02:56 PM
Changing a users password without knowing the old password nor the answer to the password question AAaron123 ASP .Net 2 01-16-2009 02:08 PM
Count Current Invalid Password Attempts badaczewski@gmail.com ASP .Net 1 11-18-2008 05:14 PM
How to limit max Invalid Password Attempts with Login Controls ad ASP .Net 1 12-03-2006 01:26 AM
Logging bad password attempts UVAHOOS Cisco 2 05-26-2006 03:41 PM



Advertisments