session variable value lost

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U00=?=

    #1

    session variable value lost

    Background
    We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration )
    .. It was working fine in local developer machine and one of our development
    testing server.
    When we moved to staging server which is also running on windows 2000 server
    and we started facing a peculiar issue.
    We are able to login successfully every time , however , a click on a link
    to move to a a different page on a hyper link.

    <asp:HyperLin k id="lnkClick" runat="server" ForeColor="Snow "
    Font-Italic="True" Font-Size="Small"
    Font-Underline="True " Font-Names="Arial" Target="_self"
    Font-Bold="True">her e</asp:HyperLink>


    Code behind has the following code
    lnkClick.Naviga teUrl = Convert.ToStrin g("Files12/Z_All_allReport s.aspx")


    What is the issue ?
    When the new page is launched , it ends in null reference exception as the
    session variables loaded in the previous page were lost.

    Our session state is still inproc .
    Is it due to any settings on the web server.


    Any information is highly appreciated .

  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    #2
    RE: session variable value lost

    Firstly, my guess is that your browser is not sending up your login cookie.
    Possibly due to differing server names, security settings or something.
    Possibly try packet sniffing on the client to see if there is a cookie sent,
    or remote debugging the web server to see if the session id is keeping
    consistent.


    Secondly:
    lnkClick.Naviga teUrl = Convert.ToStrin g("Files12/Z_All_allReport s.aspx")
    is a total waste.
    lnkClick.Naviga teUrl = "Files12/Z_All_allReport s.aspx";
    is better but the Url can be provided in the markup for simpler design i
    think.


    --
    Ciaran O''Donnell



    "SM" wrote:
    Background
    We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration )
    . It was working fine in local developer machine and one of our development
    testing server.
    When we moved to staging server which is also running on windows 2000 server
    and we started facing a peculiar issue.
    We are able to login successfully every time , however , a click on a link
    to move to a a different page on a hyper link.
    >
    <asp:HyperLin k id="lnkClick" runat="server" ForeColor="Snow "
    Font-Italic="True" Font-Size="Small"
    Font-Underline="True " Font-Names="Arial" Target="_self"
    Font-Bold="True">her e</asp:HyperLink>
    >
    >
    Code behind has the following code
    lnkClick.Naviga teUrl = Convert.ToStrin g("Files12/Z_All_allReport s.aspx")
    >
    >
    What is the issue ?
    When the new page is launched , it ends in null reference exception as the
    session variables loaded in the previous page were lost.
    >
    Our session state is still inproc .
    Is it due to any settings on the web server.
    >
    >
    Any information is highly appreciated .
    >

    Comment

    Working...