Asp.net

Keep session alive

Add page sessionloginalive.aspx in your project: protected void Page_Load(object sender, EventArgs e) { Response.AddHeader(“Refresh”, Convert.ToString((Session.Timeout * 60) – 120)); } Add iframe in master page within a body tag <iframe id=”MaintainSession” src=”~/SessionloginAlive.aspx” style=”display:none” width=”0″ height=”0″ runat=”server”></iframe > Add a Script in head section of master page <script type=”text/JavaScript”> <!– function timedRefresh(timeoutPeriod) { setTimeout(“location.reload(true);”, timeoutPeriod); }Continue Reading “Keep session alive”