i have set Session["UserID"] on page load. like
if(!IsPostBack) {
Session["UserID"] = 1222;
}
I am using HttpContext.Current.Session["UserID"] to verify user session timeout or not.
My web config setting like this,
<sessionState mode="InProc" cookieless="false" timeout="20"/>
After 20 minute Session["UserID"] object is null, but at same time, if i verify the HttpContext.Current.Session["UserID"] it show user id.
Please let me know how HttpContext.Current.Session["UserID"] is null after session timeout