How to update Set-Cookie details - WeOnlyDo Discussion board

How to update Set-Cookie details (wodWebServer / wodWebServer.NET)

by Jasmine, Friday, December 15, 2023, 18:49 (134 days ago) @ Balaji Remala

Hi.

Please request update and try it out. Version property should return 1.7.2. You should add code like this to achieve what you need:


Private Sub Web1_ResponseHeaders(ByVal User As WODWEBSERVERCOMLib.IWebUser)
    User.Response.Headers("Set-Cookie").Value = User.Response.Headers("Set-Cookie").Value + "; HttpOnly"
End Sub

Of course, add little sanity checking inside, just in case.

Let me know if this works ok for you!

Jasmine


Complete thread: