Is it possible to create a session in a class?
I am trying this in my authentication class:
HttpContext.Current.Session["user"]["name"] = "firstname";
However I get this error:
Error 342 Cannot apply indexing with [] to an expression of type 'object'
Does anyone know why?