<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>State Management</title><link>http://forums.asp.net/22.aspx</link><description>Managing ASP.NET state - ViewState, Application, Session, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=69&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: what prevents the confliction in HttpContext?</title><link>http://forums.asp.net/thread/3277363.aspx</link><pubDate>Mon, 06 Jul 2009 18:14:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3277363</guid><dc:creator>Anas_Aljabri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3277363.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3277363</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Alot for this help now it&amp;#39;s clear in my brain.&lt;/p&gt;</description></item><item><title>Re: what prevents the confliction in HttpContext?</title><link>http://forums.asp.net/thread/3274986.aspx</link><pubDate>Sat, 04 Jul 2009 22:41:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274986</guid><dc:creator>anas</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274986.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3274986</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Anas_Aljabri:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;if the application can serve multiple Requests, what prevents the confliction in the following code&lt;/p&gt;
&lt;p&gt;HttpContext context = HttpContext.Current;&lt;br /&gt;context.Items.Add(&amp;quot;UserID&amp;quot;, &amp;quot;11&amp;quot;);&lt;br /&gt;Server.Transfer(&amp;quot;AnotherForm.aspx&amp;quot;);&lt;/p&gt;
&lt;p&gt;and in AnotherForm.aspx&lt;/p&gt;
&lt;p&gt;string UserID = HttpContext.Current.Items[&amp;quot;UserID&amp;quot;];&lt;/p&gt;
&lt;p&gt;what guarantee that this Application is not serving a new Request.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;It serve more than a request at the same time and there will be no conflict because each request will have it&amp;#39;s own HttpContext object.&lt;/p&gt;&lt;p&gt;For example, let&amp;#39;s say that 2 users requested your website at the same time, then each user will be given a seprate HttpContext which encapsulates the data related to each user request.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>what prevents the confliction in HttpContext?</title><link>http://forums.asp.net/thread/3274911.aspx</link><pubDate>Sat, 04 Jul 2009 18:56:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274911</guid><dc:creator>Anas_Aljabri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274911.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3274911</wfw:commentRss><description>&lt;p&gt;Hi all i just joined this group. and i will start bothering you by question :D&lt;/p&gt;
&lt;p&gt;As i know HttpContext Object is an object which contains most of the common details about an HttpRequest and we can ask about the current HttpRequest using the following code&lt;/p&gt;
&lt;p&gt;HttpContext context = HttpContext.Current;&lt;/p&gt;
&lt;p&gt;does that mean always in the application only one Request will be serving at a time ??&lt;/p&gt;
&lt;p&gt;if the application can serve multiple Requests, what prevents the confliction in the following code&lt;/p&gt;
&lt;p&gt;HttpContext context = HttpContext.Current;&lt;br /&gt;context.Items.Add(&amp;quot;UserID&amp;quot;, &amp;quot;11&amp;quot;);&lt;br /&gt;Server.Transfer(&amp;quot;AnotherForm.aspx&amp;quot;);&lt;/p&gt;
&lt;p&gt;and in AnotherForm.aspx&lt;/p&gt;
&lt;p&gt;string UserID = HttpContext.Current.Items[&amp;quot;UserID&amp;quot;];&lt;/p&gt;
&lt;p&gt;what guarantee that this Application is not serving a new Request.&lt;/p&gt;</description></item></channel></rss>