Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2012 02:10 PM by DarthSwian
Feb 29, 2012 06:43 PM|LINK
I am going to implement SQLServer Session State for my application and I wanted to know two main things:
1) Does .Net manage the DB so that old sessions are deleted from the database after the session has expired?
2) If not, how would I go about deleting old session data from my database accross all tables?
Feb 29, 2012 06:47 PM|LINK
The session provider does clean out those sessions, they don't live forever.
Feb 29, 2012 07:08 PM|LINK
Thanks for your reply. How long before they are deleted? Can I manually set this in the config file?
Mar 01, 2012 02:10 PM|LINK
<sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="YOURCONNECTIONSTRINGTOSQL" cookieless="false" timeout="60" />