locked
Losing session variables when moving to different pages RRS feed

  • Question

  • User-1934530859 posted

    I am debugging using IIS 7.5 instead of Cassini, when I click on another page my session variables get cleared out, what would cause thsi to happen?

    Thursday, April 4, 2013 12:02 PM

Answers

  • User-166373564 posted

    Hi,

    This was working and now it is not and I need to use InProc.

    InProc session mode indicates that session state is stored locally, I don't think it is a good choice to use InProc mode between pages,

    You could have a try use StateServer or SqlServer session state mode.

    Moreover, there is a similar feedback about Inproc in stackoverflow, you could also refer the discussion below, some tips are also available for you,

    Sessionstate not being saved between pages

    At the same time you could learn difference between session –state modes(InProc mode, StateServer mode, SQLServer mode, custom mode and off mode), it will be helpful to use it better,

    Session-State Modes(http://msdn.microsoft.com/en-us/library/ms178586(v=vs.100).aspx),

    hope it helps you,

    With regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 10, 2013 4:23 AM

All replies

  • User-1137493631 posted

    are you using InProc Session State Mode ? pleae try with SqlServer session state mode.

    Thursday, April 4, 2013 12:10 PM
  • User2117486576 posted

    click on another page

    How do you navigate to the other page?

    Thursday, April 4, 2013 12:14 PM
  • User-1934530859 posted

    Yes, InProc, why wouldn't that work?

    Thursday, April 4, 2013 12:20 PM
  • User-1137493631 posted

    it will work, there is some scenario for this kind of problem .. please have a look in to this MSDN site.

    http://support.microsoft.com/kb/324772

    Thursday, April 4, 2013 12:22 PM
  • User-1934530859 posted

    I'm sorry that does not help. This was working and now it is not and I need to use InProc.

    Thursday, April 4, 2013 1:43 PM
  • User2117486576 posted

    You did not answer my question.  Perhaps if you post the relevant code.

    Friday, April 5, 2013 8:02 AM
  • User-166373564 posted

    Hi,

    This was working and now it is not and I need to use InProc.

    InProc session mode indicates that session state is stored locally, I don't think it is a good choice to use InProc mode between pages,

    You could have a try use StateServer or SqlServer session state mode.

    Moreover, there is a similar feedback about Inproc in stackoverflow, you could also refer the discussion below, some tips are also available for you,

    Sessionstate not being saved between pages

    At the same time you could learn difference between session –state modes(InProc mode, StateServer mode, SQLServer mode, custom mode and off mode), it will be helpful to use it better,

    Session-State Modes(http://msdn.microsoft.com/en-us/library/ms178586(v=vs.100).aspx),

    hope it helps you,

    With regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 10, 2013 4:23 AM