Lets say someone logged in and leave the application as an idle and again using it. In the mean time the session was time-out. So, in this position session should be give null, but still it is displaying the assigned value in the JavaScript where as code behind showing null value. Now what should I do?