We help IT Professionals succeed at work.

Using Cookies w/ ASP.NET and 2+ worker processes

Medium Priority
238 Views
Last Modified: 2012-06-21
I have an ASP.NET 4.0 web application which currently uses session variables to keep track of user information (login ID number, certain permission levels, etc). It really isn't a lot... maybe 4-5 variables at most.

I was thinking about switching to Cookies not just to free up server resources, but it's possible that I may increase the # of worker processes in the future. From what I've read, once you go beyond 1 worker process, you can no longer use Session State.

My question is, does increasing the # of worker processes have any adverse effects on cookies as well?
Comment
Watch Question

No, cookies will not be affected by separate worker processes.  With session state, all info is stored at the server.  So if you have more than 1 processes, the user could hit different process thread than the one where his session info was stored.  With cookies, the info is passed back and forth from the server and the user's browser, so hitting different processes won't be affected.

For more info:
http://msdn.microsoft.com/en-us/library/ms178194.aspx
citron, any update?

Author

Commented:
You da man.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.