I have legacy .net mvc application integrated with ServiceStack APIs, I need to get/set Session values from ServiceStack APIs in order to communicate with legacy system to ensure proper working. I explored multiple option available in ServiceStack doc/other material but looks like nothing is working in my case.
enabled session feature:
Plugins.Add(new SessionFeature());
tried to use direct:
HttpContext.Current.Session
alternate way:
var req = (HttpRequest)base.RequestContext.Get<IHttpRequest>().OriginalRequest;
var session = req.RequestContext.HttpContext.Session;
but none of them seems working.