0

Now I'm going to use the SessionStateProvider class from the sample provided by Mircosoft into production .

  1. In addition to clearing used session records from the blob, what else do I need to take into consideration before using it in live site?
  2. In the sample, SessionStateStoreData is serialized and stored in the blob. Instead, can I store in one of the columns of the table? What is the pros and cons of this approach?

  3. While clearing the unnecessary session in the table and blob, what is the best and safest way to clear?

Kai
  • 2,967
  • 1
  • 22
  • 28

1 Answers1

1

In my opinion the table based session state provider is not suitable to be used in production for a site. The hint is that Microsoft called it a sample. My main reason for this is that it doesn't deal with locking session data if there are several requests for the same session in a short period of time.

Community
  • 1
  • 1
knightpfhor
  • 9,299
  • 3
  • 29
  • 42
  • Thanks..knight. In addition to locking problem, are there any other issues I need to address? – Kai Feb 16 '12 at 15:47
  • Other than the fact that it will just error on you, I think you've already mentioned al of the issues (mainly that sessions aren't expired out of the blobs/tables) – knightpfhor Feb 16 '12 at 19:55