Azure and In Proc Session -


i have site (asp.net 4.0 c#) hosted on azure server multiple instances. session state mode "inproc". somehow not working on azure instances, doesn't maintain state properly. please advice.

regards vivek

if have multiple instances , using inproc session, session data not work - won't shared across instances.

azure load balances http requests , may send each client http request different server instance.

if want use session state, need use shared session state provider, such as:

  • the sql session state provider (although believe has limitations on sql azure cannot use sqlagent code periodically clear state)
  • the demonstration azure table session state provider (not officially supported , reported buggy)
  • the latest appfabric session state provider (currently recommended ms) - see http://appfabricdemos.codeplex.com/releases/view/65427

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -