<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath Form or XMLFormView Control adding up cookies resulting session issues</title><link>https://www.infopathdev.com:443/forums/thread/54351.aspx</link><pubDate>Thu, 29 Apr 2010 14:46:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54351</guid><dc:creator>Srinivas Varukala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;We are using XMLFormView control on a frequently accessed page. We couldn&amp;#39;t find a pattern but one each or random access of the page with xmlformview control it adds 2 cookies to the browser cache. The cookie names seems to auto-generated GUID based ones. It is formatted something like shown below:&lt;/p&gt;&lt;p&gt;06082d96-8920-4141-9d59-ce9e693fd60a_pb=0&lt;br /&gt;&lt;/p&gt;&lt;p&gt;95643ae8-8ca6-4d08-a7fa-1a41325b96b9_sel=%5B0%2C0%2C0%2C0%2C0%2C0%2CView%201%2C0%2C0%2C0%2C0%5D&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you observe the cookies always ends with _pb or _sel which actually represents postback and selection respectively. InfoPath uses these to save the state of the form. I was able to find that the SharePoint core.js file has functions which create cookies like these. But these cookies are never removed and it is piling up. Ultimately it reaches a point where the ASP.NET_SessionID cookie which represents the session shared between the browser and the server gets lost and the server sends a new session id which is making the application loose the existing session information. &lt;/p&gt;&lt;p&gt;I wrote a temporary patch for this by cleaning up the cookies on each page load. But not sure how this will effect the forms eventually.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a better solution or a fix or the right way to do it?&lt;/p&gt;&lt;p&gt;I believe there is already a post which sounds very similar to this (http://www.infopathdev.com/forums/p/10711/38270.aspx)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>