11.07.2015 Views

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

Improving Web Application Security: Threats and - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 19: Securing Your ASP.NET <strong>Application</strong> <strong>and</strong> <strong>Web</strong> Services 565●You can use the tag to apply authorization settings to an individual fileor directory. The following example shows how you can apply authorization to aspecific file (page.aspx):Session State<strong>Application</strong>s that rely on per user session state can store session state in the followinglocations:● In the ASP.NET worker process● In an out-of-process state service, which can run on the <strong>Web</strong> server, or on aremote server● In a SQL Server data storeThe relevant location, combined with connection details, is stored in the element in Machine.config. This is the default setting:Note If you do not use the ASP.NET state service on the <strong>Web</strong> server, use the MMC Services snapinto disable it.Securing a SQL Server Session State StoreIf you use a SQL Server session state store, use the following recommendations tohelp secure the session state:● Use Windows authentication to the database● Encrypt sqlConnectionString● Limit the application’s login in the database● Secure the channel

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!