title: How to get start & end time of session in asp.net c#
body: <p>I am working in asp.net c#.</p>
  
  <p>I have one user login page having userid, password fields &amp; Go button.</p>
  
  <p>After login user gives the mcq test &amp; then sign outs by clicking on Logout link present at the corner of page.
  Session starts when user clicks on Go button &amp; ends when user clicks on Logout link.</p>
  
  <p>I want Start time &amp; End time of this session which I want to save in a sql database database as LoginTime &amp; LogoutTime in datetime format.</p>
  
  <p>Thanks in advance.</p>