asp.net - Session and threads -


not been able find definitive answer this, when client session established asp.net mvc2 application assume particular thread thread pool handles request. same thread handle subsequent requests session? in theory if somehow session id messed , wrong thread picked session level data missing? thanks

in short, no, not under iis (i can't vouch "cassini" web development server in visual studio, doubt there too)

you can demonstrate thread changing adding following view:

<%= system.threading.thread.currentthread.managedthreadid %> 

now repeatedly hit page browser (or maybe hit 2 or 3 browsers) , see change time time.

having said - in simple scenario such this, may often see same thread servicing request not worth asp.net creating more threads needs, once start loading server, see multiple threads.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -