If your objective is to save the user session logout date&time means you could do that in Global.asax file where you have to write like the following
void Session_End(Object sender, EventArgs E) {
}
and set your session timeout(default is 20 Minutes) in the web.config file as
<sessionstate timeout="10000"></sessionstate>