<?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 automatically expires</title><link>http://forums.asp.net/thread/3271337.aspx</link><pubDate>Thu, 02 Jul 2009 12:54:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3271337</guid><dc:creator>sureshmdb</dc:creator><author>sureshmdb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3271337.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3271337</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Manoj,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log files also one of the factor to kill the&amp;nbsp; Sessions&amp;nbsp;,if log file length is increased more than 60MB then server(IIS)&amp;nbsp;people restricted the application,then server objects are cleared.please check with your database log files&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Session automatically expires</title><link>http://forums.asp.net/thread/3261631.aspx</link><pubDate>Sat, 27 Jun 2009 10:25:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261631</guid><dc:creator>sureshmdb</dc:creator><author>sureshmdb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261631.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261631</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Manoj,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The site is good,As I&amp;#39;m checking with session problem I objerved some little bit issue like newsletter lable text is displaying for english only other language not displying,&lt;/p&gt;</description></item><item><title>Re: Session automatically expires</title><link>http://forums.asp.net/thread/3261625.aspx</link><pubDate>Sat, 27 Jun 2009 10:17:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261625</guid><dc:creator>sureshmdb</dc:creator><author>sureshmdb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261625.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261625</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Manoj,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This site (&lt;a href="http://www.salusalpha.com"&gt;http://www.salusalpha.com&lt;/a&gt;)&amp;nbsp;which you&amp;#39;ve prodived is working fine,I selected all languages tried more than 8 times&lt;/p&gt;</description></item><item><title>Re: Session automatically expires</title><link>http://forums.asp.net/thread/3261474.aspx</link><pubDate>Sat, 27 Jun 2009 07:17:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261474</guid><dc:creator>manojbang</dc:creator><author>manojbang</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261474.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261474</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi...&lt;/p&gt;
&lt;p&gt;plz check this site &lt;a href="http://www.salusalpha.com"&gt;http://www.salusalpha.com&lt;/a&gt;&amp;nbsp;&amp;nbsp; please select language.&amp;nbsp;mentioned problem occured with this site&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Session automatically expires</title><link>http://forums.asp.net/thread/3261467.aspx</link><pubDate>Sat, 27 Jun 2009 07:04:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261467</guid><dc:creator>manojbang</dc:creator><author>manojbang</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261467.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261467</wfw:commentRss><description>&lt;pre class="c-sharp" name="code"&gt;hi suresh &lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;thanx for ur reply i have created property named sessionhandler  &lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;public static class SessionHandler
    {

        /// &amp;lt;summary&amp;gt;
        /// Culture Session variable    
        /// Setting the culture for the current session
        /// &amp;lt;/summary&amp;gt;
        #region &amp;quot;Culture&amp;quot;
        private static string _Culture = &amp;quot;Culture&amp;quot;;
        public static string Culture
        {
            get
            {
                if (HttpContext.Current.Session[SessionHandler._Culture] == null)
                {
                    return &amp;quot;en_US&amp;quot;;
                    //return &amp;quot;&amp;quot;;
                }
                else
                    return HttpContext.Current.Session[SessionHandler._Culture].ToString();

            }

            set
            { HttpContext.Current.Session[SessionHandler._Culture] = value; }
        }


        #endregion

&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;        calling this property on master page langage menu selection &lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&lt;pre class="c-sharp" name="code"&gt; protected void MnuLanguage_Click(object sender, MenuEventArgs e)
    {
        if (e.Item.Text.Trim() != &amp;quot;Languages&amp;quot;)
        {
            SessionHandler.Culture = e.Item.Value; //           MnuLanguage.SelectedValue.ToString();
        }
        Response.Redirect(&amp;quot;~/Webpages/Homepage.aspx&amp;quot;);
                
    }&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;please reply&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Session automatically expires</title><link>http://forums.asp.net/thread/3261408.aspx</link><pubDate>Sat, 27 Jun 2009 05:55:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261408</guid><dc:creator>sureshmdb</dc:creator><author>sureshmdb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261408.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261408</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Manoj,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; May be this is not a session problem,becouse it is working for Dropdownlist selection &amp;#39;English&amp;#39; if any problem with session then it has problem with Engliesh aslo but it is not happend,please can you give breif disc or send sample code.&lt;/p&gt;
&lt;p&gt;bellow code for sessions in web.config file&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;lt;sessionState&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;cookieless&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;mode&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;InProc&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;stateNetworkTimeout&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;100&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;sqlCommandTimeout&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;90&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;sessionState&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Session automatically expires</title><link>http://forums.asp.net/thread/3261402.aspx</link><pubDate>Sat, 27 Jun 2009 05:48:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261402</guid><dc:creator>mudassarkhan</dc:creator><author>mudassarkhan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261402.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261402</wfw:commentRss><description>&lt;p&gt;To verify check whether the session variable goes null since if it does not then something wrong in your logic and not session &lt;/p&gt;</description></item><item><title>Session automatically expires</title><link>http://forums.asp.net/thread/3261329.aspx</link><pubDate>Sat, 27 Jun 2009 04:32:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261329</guid><dc:creator>manojbang</dc:creator><author>manojbang</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261329.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3261329</wfw:commentRss><description>&lt;p&gt;hi.&lt;/p&gt;
&lt;p&gt;i&amp;nbsp;designed &amp;nbsp;website is in different languages. give menu bar to user to select language . for that i used session which stores the value of selected language. when user select language suppose &lt;strong&gt;&amp;quot;English&lt;/strong&gt;&amp;quot;&amp;nbsp;&amp;nbsp;website comes in english. after that user select language &lt;strong&gt;&amp;quot;Spanish&amp;quot;&amp;nbsp; it comes in spanish but after&amp;nbsp;that&amp;nbsp; user click on different link avilable on website&amp;nbsp;&lt;/strong&gt;&amp;nbsp;it goes to &lt;strong&gt;&amp;quot;English&amp;quot; instead of spanish&amp;nbsp;&amp;nbsp;&amp;nbsp; i dont understand why this happens? &amp;nbsp;i have mentioned in web.config session timeout.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;lt;sessionState mode=&amp;quot;InProc&amp;quot; timeout=&amp;quot;60&amp;quot;&amp;gt;&amp;lt;/sessionState&amp;gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;plz  give solution to this problem?????????&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;Thanks &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>