You do not create custom cookies, so let's see what cookies are created by asp.net.
It creates two primary cookies , one for the session and one for the credentials .
Now, for your part, you must decide what information is critical and should be safe.
If you decide that all user information is sensitive and needs protection, then you will make your entire ssl page safe, and you will add requireSSL="true" both httpCookies and authentication | forms authentication | forms
If you decide that only some pages are sensitive, then this is the page that should be logged in, and this is the page that should be protected by ssl, and then you use requireSSL="true" for authentication | forms authentication | forms
<authentication mode="Forms"> <forms requireSSL="true" ... /> </authentication>
Now one note, if you set requireSSL="true" , then the cookie is read / used only on secure ssl pages. Thus, your entire site should be https:// .
About ssl and cookies:
Preparing my ASP.NET/MVC site to use SSL?
Can a hacker steal a cookie from a user and log in with that name on a website?
source share