hi,
Using javascript, you can get the logged in datetime.Store it in variable.Call a java script method for some interval..say 1min ,
log time = nowdate_time - logged in datetime.
Like:
<body onload="updateClock(); setInterval('updateClock()', 1000 );">
function updateClock ()
{
var Loggeddatetime = new Date ();
var LoggedHours = Loggeddatetime.getHours ();
var LoggedMinutes = Loggeddatetime.getMinutes ();
var LoggedSeconds = Loggeddatetime.getSeconds ();
LoggedMinutes = ( LoggedMinutes < 10 ? "0" : "" ) + LoggedMinutes;
LoggedSeconds = ( LoggedSeconds < 10 ? "0" : "" ) + LoggedSeconds;
var timeOfDay = ( LoggedHours < 12 ) ? "AM" : "PM";
LoggedHours = ( LoggedHours > 12 ) ? LoggedHours - 12 : LoggedHours;
LoggedHours = ( LoggedHours == 0 ) ? 12 : LoggedHours;
document.getElementById("<%=lblDateTime1.ClientID %>").innerHTML = currentTimeString;
}
Hope this helps.