CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How to maintain Log Record of Users

Print topic Send  topic

Author Message
Anurag S
Posted: 02/13/2002, 2:40 AM

Dear Sir,

How do I maintain a Log Reocrd database of Users of a system using CodeCharge.

Log_Database table structure is :

UserID
Login_Date
Login_Time
Logout_Time
Working_Time

Please Help Me.

Anurag Seetha
Alex Alexapolsky
Posted: 02/13/2002, 3:42 AM

1) Create user login table fields you mentioned above(Login time etc. +UserID).

2) Events you need to use are :
onLogin (Or cutom login with "obtain generated code" button clicked) , OnLogout

Insert code that will add or update a record in those event. E.g. in OnLogin event (just a sample , may not work):

cn.execute ("insert into logins (userid,login_time,logout_time) values (" & session("UserID")& ",now(),null)")

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.