Unable to get session id RRS feed

  • Question

  • User-763081341 posted
    How to retrieve session id of current session in asp.net core 1.0?
    Friday, July 1, 2016 2:10 AM


  • User-383679542 posted

    You need to use Session middleware to use and manage session object. Once session middleware in place, you can access session object from HttpContext. Session Id is a property of session object.

    Here is the details and example of session middleware - https://github.com/aspnet/session 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 1, 2016 3:59 AM