Using ASP.NET MVC when trying to get the information stored on my Session["objectName"] from the constructor, I see that the Session has not been set yet, but once the controller has been constructed then the Session contains the right information.
public class ABCController : Controller
{
public ABCController() { var tmp = Session["Whatever"]; } //This line is null
//But I know it has information
public ActionResult Index() { var tmp = Session["Whatever"]; } //This works fine
}
Thanks