Skip to content

Commit dbb87cf

Browse files
author
claudiamurialdo
committed
Secure ASP.NET Framework session cookie when HTTPS is enabled.
1 parent d70a55c commit dbb87cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Middleware/GXHttpModules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public void Init(HttpApplication app)
241241

242242
private void Session_Start(object sender, EventArgs e)
243243
{
244-
if (App.Request.GetIsSecureFrontEnd() || App.Request.GetIsSecureConnection() == 1)
244+
if (App.Request.GetIsSecureFrontEnd() || App.Request.GetIsSecureConnection() == 1 || Preferences.HttpProtocolSecure())
245245
{
246246
HttpCookie sessionCookie = RetrieveResponseCookie(App.Response, cookieName);
247247

0 commit comments

Comments
 (0)