HttpContext

0
0

Hi, in WiseJ, how to use HttpContext. In ASP, it is used to get client details for log purpose.

Is it possible to get these things: HttpContext.Current.Request.LogonUserIdentity.Name, HttpContext.Current.Request.UserAgent in WiseJ ?

  • You must to post comments
0
0

Thanks a lot

  • You must to post comments
0
0

HttpContext is not available when using WebSocket. Use Application.User, Application.UserIdentity, Application.UserAgent, Application.UserHostName, etc: https://wisej.com/docs/2.1/html/Properties_T_Wisej_Web_Application.htm

Usually all the information you can possibly get from the client, and the browser is available on Application and Application.Browser (https://wisej.com/docs/2.1/html/T_Wisej_Core_ClientBrowser.htm)

You can also turn on impersonation (which doesn’t work anymore with ASP.NET integrated pipeline) adding impersonate: true to default.json (https://wisej.com/docs/2.1/html/Configuration.htm).

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.