CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
password file.



Jul 28, 2001, 8:32 AM

Post #1 of 2 (4411 views)
password file. Can't Post

sorry for not making myself clear in the last post
what I need is a file where records are made up of the fields
day - month - year - hours - mins - secs .
and these fields tell me when a user last logged onto a system

somthing like:
Username:encrypted password:preferred shell:dd/mm/hh/mm/sec

I already have a program in perl that can read a file and check to see if a user has logged on, but i do not know how to write the file that can be checked by this program.

if you could help me i would be most grateful. thanks again , conor.


Jul 30, 2001, 10:19 AM

Post #2 of 2 (4401 views)
Re: password file. [In reply to] Can't Post

I will give this a shot.

I believe that you would want a login form that would allow users to login with their information and then the date that they signed on will be appended to the database where their usernames and passwords are kept.

I supppose that the database could be set up to record:
username | password | date and time of last login

It should be possible to make it so that when a user logs in, the 'last signin' date should change, but nothing else should. Then the database would show when they last logged in. But this will not tell you when they logged out and whether they are currently logged in to your site.

We could probably go with a new subroutine that runs within the login process that will actually save the username and date/time of login to a seperate database. You could then view the database. Doing it this way would allow you to save all the logins of all usernames.

Doing it the first way would save over the last login date/time of a particular user. But doing it the second way will add the username and login date/time on a new line of the second database therefore you could use your program to view ALL the times that each user has logged in.

This was hard to explain, but I hope this helps somewhat. If this sounds something like what you needed, I could try to work something out. If I cannot, then you would still be able to use this info to explain what you need to have made for you.

Please let me know if this is close to what you need.


use CGI;
$a = new pointless CGI();


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives