When I debug I can see that storing data in my session works, the below code serializes an array and fills Session["RBACParts"]
:
var serialisedData = JsonConvert.SerializeObject(rbac.Parts);
HttpContext.Current.Session["RBACParts"] = serialisedData;
But when I try to get the parts again in a different call Session["RBACParts"]
doesn't exist in the session anymore:
var serialisedData = HttpContext.Current.Session["RBACParts"] as string;
It only doesn't work for me locally; on my colleagues' station it works fine and in the test environment it also works. Where should I look to find out why this doesn't work?
I'm using Visual Studio Enterprise 2017. I run my API project using IIS Express (Google Chrome). I don't get any error messages, only through debugging I found out that while setting the session data works, when I try to get the data it doesn't work anymore.
EDIT:
It works in Internet Explore 11, but not in Chrome