Why Session objects are not removed after Timeout period in Asp.Net?
问题 Why Session objects are not removed after Timeout period? I am using Asp.Net 4.0 and Session state is configured as shown below. <sessionState mode="SQLServer" cookieless="false" timeout="5" allowCustomSqlDatabase="true" sqlConnectionString="data source=.\SqlExpress;initial catalog=App_SessionState;user id=sa;password=xxxxxxxx"/> If I have not activity in browser for about 10 mins, shouldn't the Session object be removed. But after 10 mins I can still access the Session variable. Am I missing