mode="InProc"
timeout="120" />
And below is the code of my logout page
Session.Clear()
Session.Abandon()
LoggedInUserId = 0
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.Now.AddMinutes(60))
Response.Cache.SetNoStore()
Response.Redirect("~/Login.aspx")
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Danish HabibRank #2,024 · 715 reputationPosted Dec 4, 2014, 8:02 PM EST
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 4, 2014, 9:09 PM EST
increase the timout sec as per ur need
then it will not logout.