Hi, Duke.
This MSDN article :
"Securing Your ASP.NET Application and Web Services"
http://msdn2.microsoft.com/en-us/library/aa302435.aspx#c19618429_013
...in its section on "Securing a SQL Server Session State Store",
suggests this :
If you use a SQL Server session state store,
use the following recommendations to help secure the session state:
a. Use Windows authentication to the database
b. Encrypt sqlConnectionString
c. Limit the application's login in the database
d. Secure the channel
There's specific instructions on how to implement each of those recommendations in the article.
The last recommendation will only apply if the session state database
is on a different server than the IIS server and, even then, probably should
only be done if your SQL Server is "in the wild".
If it's in your internal network, you can probably skip that step,
although it won't hurt you to implement it regardless of where
your SQL Server is, if it's in a different box that your web server.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
>I understand how to create the session state databases but the documentation
> doesn't say what sql permissions the account in the web site's web.config
[quoted text clipped - 62 lines]
>>
>> This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 11 Sep 2007 09:56 GMT
Thanks Juan for your informative input.
Hi Duke,
If you're using the default ASPState database, the stored procedures in
ASPState database are all supposed to be used by session state handling.
Therefore I think it's necessary for the login account that you've
configured to use the session state database to have executive permission
on those stored procedures.
For the tables part, as I pointed in my last reply, depending on you're
using the tempdb or ASPState database, you will also need to make sure the
login account has read/write permission on the tables.
Please feel free to let us know if you have anything else unclear. Thanks.
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Duke (AN247) - 14 Sep 2007 08:36 GMT
Thank you both for your answers. I'll try setting it up as described in the
document.
Cheers,
Andrew