ASP.net Session Public Service Information

Where can you get information about ASP.NET public service eg. how it works, performance, behavior characteristics, etc. Look online but can't find detailed information or article on the topic. Thanks to

+4


source to share


3 answers


What may or may not be useful to you.

In short, it works like this:



The InProc session state is the fastest, however it is also in-process, which means it is not shared (read "no benefit to web farms") and is lost if the process fails.

The State Service (aspnet_state.exe) is still pretty fast, but there is some overhead due to sorting between the worker process and the service itself. Maybe good because the IP addresses can be passed in the config, which means it can run on its own machine . It also gets out of the workflow process, meaning it can survive a process crash. Since it can run on the same machine, the state can be shared if all clients are using the same machine.

Sql server (or other custom provider). - The trend is (not always) the slowest of all, especially since there could potentially be a lot more disk I / O. However, it is also one of the most reliable solutions since the state can persist to disk, which means that it can not only survive a process crash on the web server, but it can also survive on the server. the state is being restored). Combined with clustering, this can provide a robust session system.

+10


source


Programmatically, session state is nothing more than memory in the form of a dictionary or hash table, for example. key-value pairs that can be set and read during the user's session.

Check the following links for more details:



http://msdn.microsoft.com/en-us/library/ms972429.aspx

http://msdn.microsoft.com/en-us/library/ms178581(VS.80).aspx

+1


source


Consider reading a book: "Pro ASP.NET 3.5 in C # 2008" or "Pro ASP.NET 3.5 in VB.net 2008".

0


source







All Articles