<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : Oturum Süresi Bittiğinde</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : C# &amp; ASP.NET : Oturum Süresi Bittiğinde</description>
  <pubDate>Fri, 01 May 2026 13:01:46 +0000</pubDate>
  <lastBuildDate>Sun, 24 Jun 2012 16:31:43 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=2377</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>Oturum Süresi Bittiğinde : &#350;&#246;yle bir &#351;ey yapmak istiyoruz;Oturum...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2377&amp;PID=5031#5031</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 2377<br /><strong>Gönderim Zamanı:</strong> 24.Haziran.2012 Saat 16:31<br /><br />Şöyle bir şey yapmak istiyoruz;<br><div>Oturum süresi bittiğinde doğrudan kullanıcıyı, giriş sayfasına yönlendirmek istiyoruz.Nasıl yaparız ?</div><div><br></div><div>MasterPage'de veya Ana Sayfa olarak hangi sayfası kullanıyorsanız,O sayfanın;</div><div><b>Main.aspx</b></div><div>protected void Page_Load(object sender, EventArgs e)</div><div><div>{</div><div>&nbsp; &nbsp;Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60)) + ";URL=LogOff.aspx");</div><div>}</div></div><div><br></div><div><br></div><div><b>LogOff.aspx</b></div><div><div>&nbsp; &nbsp; public partial class LogOff : System.Web.UI.Page</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; protected void Page_Load(object sender, EventArgs e)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Session.Abandon();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Response.Redirect("login.aspx");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div></div><div><br></div><div>Session.Timeout ile Web.Configdeki TimeOut süresini okuyoruz.<br><b>&lt;sessionState timeout="60"&gt;</b></div><div>Varsayılan 20 dakikadır.</div><div><br><b>Yukarıdaki verdiğim örnekte sonuç olarak;</b></div><div>Sisteme kullanıcı login.aspx sayfasından Oturumu başlatıttıkdan sonra, 1 saat boyunca hiç birşey</div><div>yapmazsa(sayfa içersindeki herhangi bir nesneye tıklamazsa falan filan:) )</div><div>otomatik olarak Login.aspx'e yönlenecektir.</div><div><br></div><div><b>Burdan yola çıkarak;</b></div><div>Oturum süresini bittiğinde &nbsp;İstemci Tarafta(Client-Side) şu olsun,bu olsun,şunu yaptırmak istiyorum</div><div>diyebilirsiniz,veya oturum süresinin bittiğini nasıl tespit ederim gibi sorulara cevap olabilir diye düşünüyorum...</div><div><br></div><div>Saygılarımla.</div>]]>
   </description>
   <pubDate>Sun, 24 Jun 2012 16:31:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2377&amp;PID=5031#5031</guid>
  </item> 
 </channel>
</rss>