Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2012 02:10 PM by DarthSwian
Member
374 Points
518 Posts
Feb 29, 2012 06:43 PM|LINK
Hi,
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?
Thanks.
sessionstate sqlserver
Star
12771 Points
2361 Posts
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" />
mattcase
Member
374 Points
518 Posts
Manageing old SQLSession State
Feb 29, 2012 06:43 PM|LINK
Hi,
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?
Thanks.
sessionstate sqlserver
DarthSwian
Star
12771 Points
2361 Posts
Re: Manageing old SQLSession State
Feb 29, 2012 06:47 PM|LINK
The session provider does clean out those sessions, they don't live forever.
Seek and ye shall find or http://lmgtfy.com/
mattcase
Member
374 Points
518 Posts
Re: Manageing old SQLSession State
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?
DarthSwian
Star
12771 Points
2361 Posts
Re: Manageing old SQLSession State
Mar 01, 2012 02:10 PM|LINK
<sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="YOURCONNECTIONSTRINGTOSQL" cookieless="false" timeout="60" />
Seek and ye shall find or http://lmgtfy.com/