Session["LoggedInTime"] = System.DateTime.Now;
DateTime _loggedInTime = Convert.ToDateTime(Session["LoggedInTime"]);
TimeSpan elapsedtimespan = System.DateTime.Now.Subtract(_loggedInTime); int elapsedtime = Convert.ToInt32(elapsedtimespan.TotalSeconds);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)