Gen

Expand all | Collapse all

We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0

Jump to Best Answer
  • 1.  We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0

    Posted 03-13-2015 11:22 AM

    We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0?

     

    Here is the method. 

          override protected void OnInit(EventArgs e)

          {

             // If the session does not exist, redirect to the session expired page

             // Session_End (see Global.asax) only fires in InProc mode.

             //_Session = (Application) Context.Session[ASPAdapter.ASPX_SESSION];

             //_Application = (Application)Session[ASPAdapter.ASPX_APPLICATION];

     

     

             Session[ASPAdapter.ASPX_CURRENT_SESSIONID] = Convert.ToInt32(Request.QueryString.Get("ID"));

     

     

             _Application = (Application)Session[ASPAdapter.ASPX_APPLICATION + Session[ASPAdapter.ASPX_CURRENT_SESSIONID]];

     

     

             //if (_Session == null)

             if (_Application == null)

             {

                if (!IsDialog)

                {

                   Redirect("Ief_SessionExpiration.aspx", true);

                }

                else

                {

                   Response.Write("<script>parent.closeWindow();parent.IsSystemClose=true;parent.base().doUnload();</script>");

                   Response.End();

                }

             }



  • 2.  Re: We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0

    Posted 03-16-2015 04:46 PM

    Can someone help with this question?

     

    Thank you

    Greg Jennings wrote:

     

    We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0?

     

    Here is the method.

          override protected void OnInit(EventArgs e)

          {

             // If the session does not exist, redirect to the session expired page

             // Session_End (see Global.asax) only fires in InProc mode.

             //_Session = (Application) Context.Session[ASPAdapter.ASPX_SESSION];

             //_Application = (Application)Session[ASPAdapter.ASPX_APPLICATION];

     

     

             Session[ASPAdapter.ASPX_CURRENT_SESSIONID] = Convert.ToInt32(Request.QueryString.Get("ID"));

     

     

             _Application = (Application)Session[ASPAdapter.ASPX_APPLICATION + Session[ASPAdapter.ASPX_CURRENT_SESSIONID]];

     

     

             //if (_Session == null)

             if (_Application == null)

             {

                if (!IsDialog)

                {

                   Redirect("Ief_SessionExpiration.aspx", true);

                }

                else

                {

                   Response.Write("<script>parent.closeWindow();parent.IsSystemClose=true;parent.base().doUnload();</script>");

                   Response.End();

                }

             }



  • 3.  Re: We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0
    Best Answer

    Posted 10-08-2015 10:38 AM

    This was resolved when we applied the following ptf.

     

    RTA80014/
    RO82231
    WINDOWS400 KB06/19/15INCORRECT VIEW DATA SENT ON COOPERATIVE FLOW

    WKS80002
    RTA80008
    RTA80013



  • 4.  Re: We are having issues with the IefWebForm.aspx.cs getting a null value for the _Application variable, therefore the users are getting redirected to the session expiration page.  Anyone experience this? Asp.net gen8.0

    Broadcom Employee
    Posted 10-08-2015 11:13 AM

    Greg,

      It is great that customers like you take the time to update the Community with the resolution to difficult problems.  Thank you!  Case 00046107 has been updated with this information also.