Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

Remembering login attempts

How do I store login attempt dates and display them in a listbox?
0
JoKeRxSB
Asked:
JoKeRxSB
  • 3
1 Solution
 
blwatkinsCommented:
What are you trying to login to? (A network/ Program / etc?)

0
 
MorFFCommented:
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
 
JoKeRxSBAuthor Commented:
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
 
MorFFCommented:
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
 
MorFFCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now