Security Programming in .Net

These are few tips how to secure your .net app on code level Asp.net Version Disclosure <system.web> <httpRuntime  enableVersionHeader=”false” /> </system.web> Set Cookie to HttpOnly <system.web> <httpCookies httpOnlyCookies=”true”/> </system.web> Set Custom Error <system.web> <customErrors mode=”On” defaultRedirect=”~/Controller/ErrorPage”></customErrors> </system.web> Custom Error Disabled