
etheracide
journeyman
Jul 30, 2001, 10:19 AM
Post #2 of 2
(1704 views)
|
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. #!/usr/dusnt/know/perl use CGI; $a = new pointless CGI();
|