Solved

Session TimeOut Question

Posted on 2004-08-23
5
1,834 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 84 total points
ID: 11875518
0
 
LVL 21

Assisted Solution

by:tovvenki
tovvenki earned 83 total points
ID: 11878917
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
ID: 11879664

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 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