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

by Balaji Remala, (499 days ago) @ Jasmine

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:
[code]
Private Sub Web1_ResponseHeaders(ByVal User As WODWEBSERVERCOMLib.IWebUser)
User.Response.Headers("Set-Cookie").Value = User.Response.Headers("Set-Cookie").Value + "; HttpOnly"
End Sub
[/code]

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

Let me know if this works ok for you!

Jasmine

Hi Jasmine,
Thank you for your support.
wodWebServerCom Version is 1.7.0.364.
I am using IwodWebNotify events. I have not found IwodWebNotify_ResponseHeaders event.
There is only IwodWebNotify_ResponseDone, IwodWebNotify_RequestDone and IwodWebNotify_RequestHeaders.
Thank you,
Balaji

locked

Complete thread: