views:

97

answers:

3
+1  Q: 

IIS App Pool

If my host automatically recycles the app pool when it reaches a certain size will this cause all users sessions to be lost and the user to be logged out?

If this is the case would moving InProc sessions to SQL fix the issue? Would doing this also save much memory?

Thanks

Gavin

A: 

Yes, moving the sessions to SQL Server would solve that problem.

John Saunders
A: 

Yes, moving to an out of process solution for sessions will fix this issue.

Kevin
+1  A: 

Yes, all user sessions in the pool are gone. If you use an out-of-proc SQL Server, it will survive app pool resets. see http://www.eggheadcafe.com/articles/20021016.asp for some more remarks.

It will save memory on your IIS server, but be aware of the performance considerations.

Rine
Would it persist any logins that were made using the ASP.Net Membership model? I'm aware of the performance but not sure I have much choice as my host recycles the app pool every time it gets to 100mb
Gavin Draper