<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>johnly's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/231349/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user johnly.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 21 May 2013 09:03:13 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Re: Session times out too soon</title>
      <link />
      <description>&lt;p&gt;Posted the message 'Re: Session times out too soon' on the Active Server Pages forum.&lt;/p&gt;I also faced the same problem with a site where around 400 users were hitting at the same time. The solution is that we need a better session management. &lt;br /&gt;
I will suggest you to change your web.config code like this.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;sessionState &lt;br /&gt;
        mode="StateServer"&lt;br /&gt;
        cookieless="false" &lt;br /&gt;
        timeout="20"/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Here I have changed the session state to a seperate worker process (ASP state management server).&lt;br /&gt;
&lt;br /&gt;
It is recommended to move your session into the stateserver or SQL server state management in the production environment.&lt;br /&gt;
&lt;br /&gt;
Note: You need to start the 'ASP.NET State Service' windows service on the web server in order to make this code work.&lt;br /&gt;
&lt;br /&gt;
This will solve your problem related to session getting timed out before 20 minutes&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=http://www.johnleesam.com&amp;gt;Johnlee Sam&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: I'm attempting to use a Session variable to store user information.  &lt;br /&gt;
: I've got a main login page, and once I validate their login against &lt;br /&gt;
: my database, I store their login ID in Session.  On subsequent &lt;br /&gt;
: pages, I've got code like this:&lt;br /&gt;
: &lt;br /&gt;
: IF Session("loginID") = "" THEN&lt;br /&gt;
:   Response.redirect("default.asp")&lt;br /&gt;
: END IF&lt;br /&gt;
: &lt;br /&gt;
: so that if a user's session times out, or somebody tries to enter &lt;br /&gt;
: the middle of the site without logging in, they're redirected to the &lt;br /&gt;
: main login page.&lt;br /&gt;
: &lt;br /&gt;
: I haven't done anything with Session.Timeout, so the timeout should &lt;br /&gt;
: default to 20 minutes, but sometimes it seems like it only takes 3-4 &lt;br /&gt;
: minutes of inactivity for my session to timeout.  &lt;br /&gt;
: &lt;br /&gt;
: What gives?&lt;br /&gt;
: &lt;br /&gt;
: I'm running the site on a Windows 2000 server, IIS 5.  I don't have &lt;br /&gt;
: frames, but I do have some pages loaded via Javascript (i.e., &lt;br /&gt;
: window.open).&lt;br /&gt;
: &lt;br /&gt;
: I'm about this close to recoding everything to get away from Session &lt;br /&gt;
: variables (and I know there are real reasons to do this anyway), but &lt;br /&gt;
: that's going to be such a pain in the...&lt;br /&gt;
: &lt;br /&gt;
: Thanks.&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=http://www.johnleesam.com&amp;gt;Johnlee Sam&amp;lt;/a&amp;gt;</description>
      <pubDate>Tue, 09 Dec 2008 13:36:46 -0700</pubDate>
    </item>
    <item>
      <title>Re: Cannot set Session.Timeout.</title>
      <link />
      <description>&lt;p&gt;Posted the message 'Re: Cannot set Session.Timeout.' on the IIS forum.&lt;/p&gt;I will suggest you to change your web.config code like this.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;sessionState &lt;br /&gt;
        mode="&lt;strong&gt;StateServer&lt;/strong&gt;"&lt;br /&gt;
        cookieless="false" &lt;br /&gt;
        timeout="1440"/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Here I have changed the session state to a seperate worker process (ASP state management server).&lt;br /&gt;
&lt;br /&gt;
It is recommended to move your session into the stateserver or SQL server state management in the production environment.&lt;br /&gt;
&lt;br /&gt;
Note: You need to start the 'ASP.NET State Service' windows service on the web server in order to make this code work.&lt;br /&gt;
&lt;br /&gt;
This will solve your problem related to session getting timed out before 24 hours&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;a href=http://www.johnleesam.com&amp;gt;Johnlee Sam&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;a href=http://www.fmcgdirectory.com&amp;gt;FMCG Directory&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: I am running IIS 6.0 on Windows Server 2003 Enterprise Edition.  I &lt;br /&gt;
: am unable to set the Session.Timeout property to 1440 minutes (24 &lt;br /&gt;
: hours), which is the supposed maximum.  Whenever I set it to this &lt;br /&gt;
: value using ASP, the session still times out after 20 minutes, which &lt;br /&gt;
: is the default.  I have also set the Session timeout to 1440 minutes &lt;br /&gt;
: in the IIS property page, but this was also ignored.  What I am I &lt;br /&gt;
: missing?&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 09 Dec 2008 13:34:07 -0700</pubDate>
    </item>
    <item>
      <title>Re: Session Variable loses its value</title>
      <link />
      <description>&lt;p&gt;Posted the message 'Re: Session Variable loses its value' on the Active Server Pages forum.&lt;/p&gt;Session may be getting expired before you pass to the next page. &lt;br /&gt;
Well... I will recommend you to change your web.config code like this.&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;sessionState &lt;br /&gt;
        mode="&lt;strong&gt;StateServer&lt;/strong&gt;"&lt;br /&gt;
        cookieless="false" &lt;br /&gt;
        timeout="20"/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Here I have changed the session state to a seperate worker process (ASP state management server).&lt;br /&gt;
&lt;br /&gt;
It is recommended to move your session into the stateserver or SQL server state management in the production environment.&lt;br /&gt;
&lt;br /&gt;
Note: You need to start the 'ASP.NET State Service' windows service on the web server in order to make this code work.&lt;br /&gt;
&lt;br /&gt;
This will solve your problem related to session getting timed out before 20 minutes&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.fmcgdirectory.com"&gt;FMCG Directory&lt;/a&gt;&lt;br /&gt;
: Well, i got a site. It works perfectly most of the time, but &lt;br /&gt;
: sometime the session variable don't pass on correctly, and it messes &lt;br /&gt;
: up the whole thing. So is there any good solution to it.&lt;br /&gt;
: P.S. My session variables are used to keep login status&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 09 Dec 2008 13:27:33 -0700</pubDate>
    </item>
  </channel>
</rss>