Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Displaying customer login and logout time (http://www.go4expert.com/forums/displaying-customer-login-logout-time-t622/)

chickenyd 11Mar2006 08:06

Displaying customer login and logout time
 
hi,
can any1 explain to me how to display in log files the customer login time and logout time. the customers should be searchable by specifying range of date and time.

PS I am trying to display the info in WAP browser..



thanks

shabbir 11Mar2006 08:56

Re: Displaying customer login and logout time
 
Is the log files any special files or you just need to save the time yourself by making a file write to the log files. Do you mean the server log files.

pradeep 11Mar2006 10:57

Re: Displaying customer login and logout time
 
Hi,
To achieve your goal, you'll need to maintain your own log file (other than the sever's own log file) to store customer login & logout time.
You may either use a flat file or a database to store the logs.
You might have noticed that many sites show the last login time, they only require to store the last login time.But as you want the login & logout time searchable you'll need to store the date & time everytime the customers logs in & logs out.

chickenyd 11Mar2006 16:50

Re: Displaying customer login and logout time
 
Ok so i will need to create a table in the database to store these files.

thanks


All times are GMT +5.5. The time now is 06:57.