Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2005, 12:10 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default end session notification

Hi,
Currently I am using vb.net to create a web application. I would like to pop up a confirmation message box to the user 1 minutes before the session end to ask whether the user would like to continue with the session. So, how could I detect the time before the session end? and is there any way to pop up the confirmation message box with pure vb.net code without using javascript?

 
Old February 22nd, 2005, 02:20 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

You cannot know beforehand that the Session is going to be dropped—at least, not from the Session itself. You would need to find the Session’s timeout setting, and calculate for yourself—independently—how close it is to expiring.
I don’t think you are going to be able to do this at the server, because any query of the server will reset the time-expired to 0.
You can send the timeout value to the web page, and have the page count off the minutes, but—as you suspect—that will take some client-side processing.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Back End - MS Access Front End - Multi User ckaliveas Oracle 1 February 1st, 2007 06:00 AM
ASP.NET Session End Redirect peter2004 ASP.NET 2.0 Basics 7 February 27th, 2006 05:00 PM
dll updation causes session to end madhukp ASP.NET 1.0 and 1.1 Basics 4 February 18th, 2006 10:26 PM
ASP Session End xergic Classic ASP Components 13 May 3rd, 2005 01:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.