<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problem using HttpCotnext in brwoser-enabled form</title><link>https://www.infopathdev.com:443/forums/thread/19099.aspx</link><pubDate>Mon, 16 Apr 2007 07:48:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19099</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=19099</wfw:commentRss><description>&lt;p&gt;Although what you are describing should work in principle (ASP.NET session persists across the farm) it remains that the ASP.NET session is a shared resource you do not necessarily control. Maybe the data size is what is causing the session failures. You should try to see if changing the size of your object changes the failure characteristics (what if you store a single-character value, will it also dissapear?)&lt;/p&gt;&lt;p&gt;Also, when you say &amp;quot;a few loads&amp;quot;, is it a number which varies all the time, or is it always the same, say, &amp;quot;three&amp;quot;&lt;/p&gt;&lt;p&gt;Although I am not sure what your issue is exactly, one workaround I would suggest is to store your shared data in a data connection, such as webservice. This has a huge advantage of your form being able to run the same on both client and server without writing different code for each. After all, data connections are first-class citizens in InfoPath!&lt;/p&gt;&lt;p&gt;Hope this makes sense,&lt;/p&gt;&lt;p&gt;Dave.&lt;/p&gt;</description></item><item><title>Problem using HttpCotnext in brwoser-enabled form</title><link>https://www.infopathdev.com:443/forums/thread/15557.aspx</link><pubDate>Tue, 27 Feb 2007 14:53:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15557</guid><dc:creator>alantang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15557</wfw:commentRss><description>We have a set of forms deployed on MOSS and need to maintain user state across all forms. We tried using HttpContext.Current in form code. To set the session variable, we do this:&lt;br /&gt;&lt;br /&gt;&lt;font color="blue"&gt;            if (Application.Environment.IsBrowser)&lt;br /&gt;            {&lt;br /&gt;                HttpContext.Current.Session["entity.ID"] = e.NewValue;&lt;br /&gt;            }&lt;/font id="blue"&gt;&lt;br /&gt;then on receiving forms, we do the following:&lt;br /&gt;&lt;br /&gt;&lt;font color="blue"&gt;            if (application.Environment.IsBrowser)&lt;br /&gt;            {&lt;br /&gt;                object sessionObj = HttpContext.Current.Session["entity.ID"];&lt;br /&gt;                string sessionValue;&lt;br /&gt;                if (sessionObj != null)&lt;br /&gt;                {&lt;br /&gt;                    sessionValue = sessionObj.ToString();&lt;br /&gt;                }&lt;br /&gt;            }&lt;/font id="blue"&gt;&lt;br /&gt;&lt;br /&gt;The receiving forms work initially but after a few load of the form, the session variable is lost. That is, &lt;b&gt;sessionObj != null &lt;/b&gt;evaluates to false.&lt;br /&gt;&lt;br /&gt;Any idea what is happening here?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>