locked
When to use SQLServer or StateServer session mode? RRS feed

  • Question

  • User-1402042119 posted

    Just wanted to know in which type of web application we can use out proc session state mode? Please give some example and explain why? 

    Sunday, February 13, 2011 10:39 AM

Answers

  • User541108374 posted

    Hi,

    most of the time you keep things as the default InProc. However if you want to move out to a webfarm and don't make use of sticky sessions you need to have a single place to store sessions. So that leaves you with these 2 options. The reason why you need that single place is because you can't predict with stickyless sessions to which server one gets redirected so they might have put something in session on server 1 and return to server 2 and find themselves not having that session over there. Hence the need of a single point of putting your session state.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 13, 2011 10:51 AM

All replies

  • User541108374 posted

    Hi,

    most of the time you keep things as the default InProc. However if you want to move out to a webfarm and don't make use of sticky sessions you need to have a single place to store sessions. So that leaves you with these 2 options. The reason why you need that single place is because you can't predict with stickyless sessions to which server one gets redirected so they might have put something in session on server 1 and return to server 2 and find themselves not having that session over there. Hence the need of a single point of putting your session state.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, February 13, 2011 10:51 AM
  • User-1402042119 posted

    Thanks XIII

    Tuesday, February 15, 2011 12:54 PM