Session is not working with .aspx page RRS feed

  • Question

  • Hi,

    I have upload a .aspx page in a page library of a publishing portal. This page does not inherit from any master or layout page. This aspx page consists of few ascx user controls. When I am trying to use the  System.Web.HttpContext.Current.Session in the user controls I am getting the value as null. But I am successfully able to get the value of System.HttpContext.Current.Request.Cookies.

    I have checked in central admin that session state is enabled. In web.config the enablesessionstate value id true. There is another site in the same sitecollection in that site I have few pages which inherit from masterpage and page layout. In those pages session state are working fine.

    Please help.



    Monday, December 5, 2011 1:44 PM


All replies