Session Expire Problemhttp://forums.asp.net/t/521988.aspx/1?Session+Expire+ProblemSun, 28 Mar 2004 13:55:00 -0500521988521988http://forums.asp.net/p/521988/521988.aspx/1?Session+Expire+ProblemSession Expire Problem Dear all, I built web application with C# and SQL Server. The problem is that when I run the web application for a certain time say about 5 minutes and click the drop down list. The page stop loading and all other hyperlink inside the application was killed. The session tag in web.config is the default value and I have set cookie value expire after logout. I don't know what happen to session. Could anyone tell me the problem? Waiting for reply!! Thanks!! Attach code for login success page and web.config <pre class="prettyprint">/* * GetSessionValue() is to read session value which is already set in Login page * */ private void SetSessionValue() { if (Session[&quot;sid&quot;]!=null) { //read staffID and staffPcode session value lblStaffId.Text = Session[&quot;sid&quot;].ToString(); lblStaffPcode.Text = Session[&quot;pcode&quot;].ToString(); } else { Server.Transfer(&quot;//SMS/LoginUser/Login.aspx&quot;); } } /* * SignOutUser() is to perform session clearance and cookies expiration * when user click logout * */ private void SignOutUser() { Session.Clear(); Session.Abandon(); Response.Cookies[&quot;myCookie&quot;].Expires = DateTime.Now; Server.Transfer(&quot;//SMS/LoginUser/Logout.aspx&quot;); } /* * btnLogout_Click() is to perform basic logout operation when user click * */ private void btnLogout_Click(object sender, System.EventArgs e) { SignOutUser(); }</pre> <pre class="prettyprint"> web.config <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/> </pre> 2004-03-28T13:47:30-05:00