Displaying customer login and logout time

Discussion in 'JSP' started by chickenyd, Mar 11, 2006.

  1. chickenyd

    chickenyd New Member

    Joined:
    Mar 11, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    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.
     
  4. chickenyd

    chickenyd New Member

    Joined:
    Mar 11, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Ok so i will need to create a table in the database to store these files.

    thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice