|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
User Identification System
Hi everyone,
I've been assigned to develop a system for PC users identification.. The system would prompt users for their username and password in three situations (then stores these data into a database): (1) During PC boot-up (2) During PC logoff (3) During system idle for more than 5 minutes I've managed to find some solution for situation (3). Does anyone here know how I can find solutions for situations (1) and (2)? Any help at all will be greatly appreciated. Thanks very much! |
|
#2
|
|||
|
|||
|
no but when you find out tell me
|
|
#3
|
||||
|
||||
|
I have no idea about log-off, but the log-on can be done easily by making the program run on start-up, and logging the user when the program is executed.
You can use the registry to do this... Path: HKLM/Software/Microsoft/Windows/CurrentVersion/Run Entry Name: Title of your application Entry Value: Path of your application Well that's #1 sorted, now here's how I would do #2... I would make a field in the sessions table called 'Last Active'. I would then have the program write to that Field with the current date and time every 5 mins. That way you can tell more-or-less when the user logged off.
__________________
LozWare Website Directory Whooo! Free submissions, no recip needed. I'm a nice guy
|
|
#4
|
|||
|
|||
|
Hi everyone,
LozWare, thanks for the guidelines. Appreciate it! This system's developement is currently under way.. I've found out that I can do the setting for logon (#1) without using the any codes.. All I need to do is just use the "Scheduled Tasks" at "Control Panel" and select the system's EXE file to be executed on logon. Now, as for logoff (#2), the requirement is such that the system should still prompt PC users for their login ID and password, when they are attempting to log off from the PC. (Please note that currently, the PCs are running on Win NT) LozWare, I'm afraid that I cannot implement your method for (#2), as my superior has insisted that the it should be carried out in the method mentioned here. I've found out that perhaps, I can use the VB form's event QueryUnload for detecting PC logoff (#2). How do I get this done? Any suggestions? I've never used QueryUnload before. Please help. Thanks in advance for any help at all. Will appreciate it very much. ~Deborah |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > User Identification System |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|