Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I'm trying to add below line in web.config to include secure flag on session cookie.

<httpCookies requireSSL="true" />

But, upon adding this line, my application log's out and does not allows me to go further after logging into the application.

My authentication in web.config is

<authentication mode="Windows"/>

My aim is to set secure flag. Without the “secure” flag, the browser could inadvertently send session cookies over unencrypted connections, which could allow the cookie to be compromised over the network.

Thanks & regards,
Puneeth
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900