<?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: session</title><link>http://forums.asp.net/thread/2781604.aspx</link><pubDate>Wed, 03 Dec 2008 08:47:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2781604</guid><dc:creator>darkcat02</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2781604.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2781604</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi,&lt;/p&gt;&lt;p&gt;how did you manage the serialization using vb? im not using class but function... any ideas? thanks a lot...&amp;nbsp;&lt;/p&gt;&lt;p&gt;im not using c#....&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: session</title><link>http://forums.asp.net/thread/2466787.aspx</link><pubDate>Fri, 04 Jul 2008 06:06:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2466787</guid><dc:creator>santa_1975</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2466787.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2466787</wfw:commentRss><description>&lt;p&gt;If I&amp;#39;m not wrong, you&amp;#39;re trying to share the session across multiple ASP.NET applications.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s how you do it...&lt;/p&gt;&lt;p&gt;1) Use SQL Server for storing session state.&lt;/p&gt;&lt;p&gt;2) Tweak &amp;quot;&lt;span style="font-size:10pt;font-family:Arial;"&gt;TempGetAppID&amp;quot; in the session database so that it returns session values for multiple application&lt;/span&gt;s&amp;nbsp; - refer to the below link to achieve this.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;http://blogs.msdn.com/toddca/archive/2007/01/25/sharing-asp-net-session-state-across-applications.aspx&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: session</title><link>http://forums.asp.net/thread/2466757.aspx</link><pubDate>Fri, 04 Jul 2008 05:51:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2466757</guid><dc:creator>tasnim5</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2466757.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2466757</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please visit the links below:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.csharphelp.com/archives/archive207.html"&gt;http://www.csharphelp.com/archives/archive207.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.eggheadcafe.com/articles/20021016.asp"&gt;http://www.eggheadcafe.com/articles/20021016.asp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/SessionManagementAspNet.aspx"&gt;http://www.codeproject.com/KB/aspnet/SessionManagementAspNet.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.programmersheaven.com/2/State-Management-in-ASP-NET"&gt;http://www.programmersheaven.com/2/State-Management-in-ASP-NET&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: session</title><link>http://forums.asp.net/thread/2466722.aspx</link><pubDate>Fri, 04 Jul 2008 05:24:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2466722</guid><dc:creator>foekall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2466722.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2466722</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;niharnayak2003:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="ForumPostSignature"&gt;&lt;strong&gt;&lt;u&gt;For SQl Server&lt;/u&gt;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;For State Server&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&amp;lt;sessionState mode=&amp;quot;StateServer&amp;quot; stateConnectionString=&amp;quot;tcpip=127.0.0.1:55455&amp;quot; sqlConnectionString=&amp;quot;data source=127.0.0.1;user id=sa;password=&amp;#39;&amp;#39; cookieless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;For SQL Server&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;sessionState mode = &amp;quot;SqlServer&amp;quot; stateConnectionString=&amp;quot;tcpip=127.0.0.1:45565&amp;quot; &lt;/p&gt;
&lt;p&gt;sqlConnectionString=&amp;quot;data source=&amp;quot;SERVERNAME;user id=sa;password=&amp;#39;&amp;#39; cookiesless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Dear bro...&lt;/p&gt;&lt;p&gt;Plz let me know. My project have using many web application. So, do I need to write this &lt;b&gt;SessionState&lt;/b&gt; any web.config file from every application and were can I write this in web.config. &lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: session</title><link>http://forums.asp.net/thread/2465032.aspx</link><pubDate>Thu, 03 Jul 2008 11:24:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2465032</guid><dc:creator>ASHISH1985S</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2465032.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2465032</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;Session in ASP.net can be stored in 3 ways.&lt;br /&gt;1. Inproc&lt;br /&gt;2. State Server&lt;br /&gt;3. SqlServer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The
InProc mode of Session State management is the fastest among all of the
storage modes available and stores the Session data in the ASP.NET
worker process.&lt;br /&gt;Performance will be effected if the amount of data
stored in the session is large. Basically the session is stored in the
memory space of an application &lt;br /&gt;domain and is volatile.So if asp.net worker process i.e. aspnet_wp.exe restarts then the session state will be lost.&lt;br /&gt;The
Session State here entirely depends on the lifetime of the application
domain that it runs on. Note that the Session_End event which is fired
internally by the web server is supported only in InProc mode. Note
that even if the Session State is set to read only using the
EnableSessionState attribute, in the InProc mode one can still modify
the session. The Session_OnEnd event is invoked by the runtime
environment when we make a call to the Session.Abandon() method or when
the user&amp;#39;s session times out. Further, any change made in the settings
in the web.config file unloads the application domain and the Session
State too.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The StateServer mode uses a stand-alone Microsoft Windows service that is independent of IIS and can run on a separate server.&lt;br /&gt;In
this case the session state is serialized and stored in memory in a
separate process that is managed by the aspnet_state.exe file. &lt;br /&gt;This has got some performance drawbacks due to the overhead involved in serialization and de-serialization of objects. &lt;br /&gt;The
main primary advantage of storing the Session State in a State Server
is that it is not in the same process as the ASP.NET and a crash of
ASP.NET &lt;br /&gt;would in no way destroy the session data. Secondly, this
mode of Session State storage enables to share the information across a
web garden or a web farm.&lt;br /&gt;&lt;br /&gt;Rememeber that this mode is slow compared to the InProc mode as it is stored in an external process.&lt;br /&gt;&lt;br /&gt;The SQLServer mode of Session State management is a reliable, secure and centralized storage of a session state&lt;br /&gt;In this the Session data is serialized and stored in a database table in the SQL Server database.&lt;br /&gt;It can typically be used in the web farms.  &lt;br /&gt;&lt;br /&gt;It
has performance bottlenecks as in the State Server mode of Session
State management due to the overhead involved in serialization and
de-serialization &lt;br /&gt;of the objects that are stored and retrieved to and from the Session.  &lt;br /&gt;SQL
Server is more secure than the InProc or the State server modes of
Session State storages as the data can be secured easily by &lt;br /&gt;configuring the SQL Server security.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope this will helps you out..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With Regards..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ashish Shah&lt;/p&gt;&lt;p&gt;India&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;NOTE:: PLease mark this post as answered if you like / post is useful to you...&lt;/b&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: session</title><link>http://forums.asp.net/thread/2464156.aspx</link><pubDate>Thu, 03 Jul 2008 05:46:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2464156</guid><dc:creator>niharnayak2003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2464156.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2464156</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Use Out Process and save your session in Sql server it will easy to manage&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using eighter SQL Server Session State or State Servers instead of the default InProc mode has the benefit of making your site more scalable and reliable by storing session information on a SQL Server database or on another machine on&amp;nbsp;the web farm. So in both scenarios the web server will be less busy handling session information and will have more time to service requests. On the other hand, the InProc mode is the fastest mode because it keeps all the information on the web server&amp;#39;s memory. You can also take a look at the following greate links for more information on choosing the right mode and configuring OutProc session state management:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.eggheadcafe.com/articles/20021016.asp"&gt;&lt;font color="#034efa"&gt;http://www.eggheadcafe.com/articles/20021016.asp&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.ondotnet.com/pub/a/dotnet/2003/03/24/sessionstate.html"&gt;&lt;font color="#034efa"&gt;http://www.ondotnet.com/pub/a/dotnet/2003/03/24/sessionstate.html&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://idunno.org/articles/277.aspx"&gt;&lt;font color="#034efa"&gt;http://idunno.org/articles/277.aspx&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span class="ForumPostContentScrollbarCorrector"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ForumPostSignature"&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;For SQl Server&lt;/u&gt;&lt;/strong&gt;&amp;nbsp;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;For State Server&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&amp;lt;sessionState mode=&amp;quot;StateServer&amp;quot; stateConnectionString=&amp;quot;tcpip=127.0.0.1:55455&amp;quot; sqlConnectionString=&amp;quot;data source=127.0.0.1;user id=sa;password=&amp;#39;&amp;#39; cookieless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;The attributes are self explanatory but I will go over them.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;b&gt;mode:&lt;/b&gt; This can be StateServer or SqlServer. Since we are using StateServer we set the mode to StateServer.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;b&gt;stateConnectionString:&lt;/b&gt; connectionString that is used to locate the State Service.&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;font face="Arial" size="2"&gt;sqlConnectionString: &lt;/font&gt;&lt;/b&gt;&lt;font face="Arial" size="2"&gt;The connection String of the sql server database.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;b&gt;cookieless: &lt;/b&gt;Cookieless equal to false means that we will be using cookies to store the session on the client side. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;For SQL Server&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;sessionState mode = &amp;quot;SqlServer&amp;quot; stateConnectionString=&amp;quot;tcpip=127.0.0.1:45565&amp;quot; &lt;/p&gt;
&lt;p&gt;sqlConnectionString=&amp;quot;data source=&amp;quot;SERVERNAME;user id=sa;password=&amp;#39;&amp;#39; cookiesless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;&lt;/p&gt;</description></item><item><title>session</title><link>http://forums.asp.net/thread/2464080.aspx</link><pubDate>Thu, 03 Jul 2008 05:05:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2464080</guid><dc:creator>foekall</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2464080.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=2464080</wfw:commentRss><description>&lt;p&gt;Dear all&lt;/p&gt;&lt;p&gt;I would like to ask about session in asp.net(C#). In my new project I am using many sub domain by category. I want to control session state between each domains. Can I? plz help me?&lt;/p&gt;&lt;p&gt;&amp;nbsp;thz all&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>