How to know whether the session is expired?

how to know whether the (i.e web page) session is expired or not? My Requirement is to log the Login Time and Logout Time or Automatically Session Expiration.

Subject: How to know whether the session is expired?

Read about Session based authentication in Domino Admin Help.