Solved

Session TimeOut Question

Posted on 2004-08-23
5
1,791 Views
Last Modified: 2008-01-09
I have an application which by default times out at 20 minutes. I want it to stay at 20 minutes, however after 20 minutes I want for the page automaticaly refresh, and give an expired page warning "Page expired, please click refresh..." Thanks.
0
Comment
Question by:gtvingo14
5 Comments
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 84 total points
Comment Utility
0
 
LVL 21

Assisted Solution

by:tovvenki
tovvenki earned 83 total points
Comment Utility
Hi,
check whether the following discussion helps you
http://p2p.wrox.com/topic.asp?TOPIC_ID=4882

regards,
venki
0
 
LVL 20

Assisted Solution

by:ihenry
ihenry earned 83 total points
Comment Utility

if you want to prompt user for a message use client-side script to handle that. The sample below will prompt user for a message 5 seconds after the page is loaded.

=-=-=- aspx =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
<html>
      <head>
            <title></title>
            <script language="javascript">
            <!--
            function SessionTimeOut()
            {
                  alert('Page expired, please click refresh...');
                  // or redirect to a page
                  // window.location.href='default.aspx';
            }
            // -->
            </script>
      </head>
      <body runat="server" id="body">
            <form id="Form1" method="post" runat="server">
            </form>
      </body>
</html>
=-=-=- aspx.vb - Page_Load event =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      Dim sessionTimeout As Integer = 5000 // 5 seconds
      body.Attributes.Add( "onLoad", String.Format("window.setTimeout('SessionTimeOut()',{0});", sessionTimeout) )
End Sub


HTH
Henry
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now