Prev: Syntax for "OR" in WHERE clause passing parameters from C# ASP.NET
Next: closing browser with out user interaction
From: Patrice on 2 Apr 2010 13:16 > It seems like a generic question, like "is it true that 'int' in C# is > bigger than 'int' in C++?" It's a fact that in ASP we were told that it's > a bad idea to store objects in Session variables because of threading > problems--unless the objects were "both-threaded". I'm asking whether this > issue exists in ASP.NET. This is the other way round. ASP.NET uses MTA. You can force STA using the ASPCompat attribute : http://msdn.microsoft.com/en-us/library/zwk9h2kb.aspx IMO, it's unlikely you'll ever have to use COM components and much less storing them in session variables... -- Patrice |