Solved

Remembering login attempts

Posted on 1998-08-20
5
162 Views
Last Modified: 2010-04-30
How do I store login attempt dates and display them in a listbox?
0
Comment
Question by:JoKeRxSB
  • 3
5 Comments
 
LVL 1

Expert Comment

by:blwatkins
ID: 1430065
What are you trying to login to? (A network/ Program / etc?)

0
 
LVL 3

Accepted Solution

by:
MorFF earned 50 total points
ID: 1430066
Asuming it it login attempts to your own application.  As is the way with thse things, thate are a number of ways to skin this particular cat.

If you're already using a database within your application, you can create a little table to store login details (who and when), each login writes a record to the table.  Then you can use a query to return the info you want to your list box.

If you've not got a database, you can store the details in a data file, in a similar fashion to that above.  You can then read the file and populate your listbox from that.

Either way, depending on the level of security/confidentiality, you can encrypt the information in the db or file.

Cheers - MorFF
0
 

Author Comment

by:JoKeRxSB
ID: 1430067
OK i know how to read & write INI files but won't it overwrite everytime a new attempt is stored?  What other way to store info is there?
0
 
LVL 3

Expert Comment

by:MorFF
ID: 1430068
If you wanted to use an INI file.  You could gove it a new key based on the date&time, that wouldn't overwrite.

Cheers - MorFF
0
 
LVL 3

Expert Comment

by:MorFF
ID: 1430069
You could also use a normal 'WRITE' and 'READ' to a sequential file.  First time you open it, open it for output, then open it for 'APPEND' to stop you overwriting the entries.

Cheers - MorFF
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now