473,595 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

User inactivity?

We have a need to determine whether a user is inactive or not, and present a
pop-up to have them either logoff or renew the session. After 15 minutes of
inactivity, the pop-up would ask the user to click Cancel if they wish to
logoff, or click OK to renew the session. The pop-up would also say
something like "Your current session will expire in 2 minutes at 1:42pm".

Thanks!!


Jul 29 '05 #1
1 1931
Hi,
This can be achieved(in a way) using javascript. Send the session time
out limit (for eg 15 minutes) to client side. start a javascript
window.setTimeo ut and keep decreasing the time for every second and once it
reaches zero fire an alert box. Even though the time out may not be exactly
same as the server' time out (there be 10 - 20 seconds mismatch depends on
network speed) this is an easy effective way.
Hope this helps.
Thanks,
Ravi

"Dean J Garrett" wrote:
We have a need to determine whether a user is inactive or not, and present a
pop-up to have them either logoff or renew the session. After 15 minutes of
inactivity, the pop-up would ask the user to click Cancel if they wish to
logoff, or click OK to renew the session. The pop-up would also say
something like "Your current session will expire in 2 minutes at 1:42pm".

Thanks!!


Aug 1 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2762
by: Serial # 19781010 | last post by:
I have a multithreaded server - one thread / client. I have a client 1 connected to thread A, and a I have client 2 connected to thread B. After certain equal period of inactivity Client 1 sends a message to Thread A. Thread A receives the message, and sends it back to client 1 as well as client 2. Client 1 receives the message succesfully but then when Thread A tries to send to client 2 out of a sudden Thread B throws "Connection Reset...
2
378
by: Frank Esser | last post by:
Hello, I have got a specific question on user authentication. My customers usually use their workstations all together as a kind of public terminal. This means one of the users in the team logs in in the morning and everybody uses the workstation during the day (I know this is not a safe way but they do so...). Now I want to write an application that offers a user authentication to be
14
5248
by: Sonic | last post by:
I have an MDE file that is growing exponentially (from 3,900 KB to over 132,000 KB today). I am not saving data in this MDE, although I use a mix of offline and SQL tables for Read Only querying. I also have many forms and some reports and queries. Many people use this DB on a daily basis and there is constantly someone in it, virtually every minute. The DB tends to crash every couple of weeks. I am wondering if the size of this...
0
1793
by: Jonas Hei | last post by:
I need to implement a listener that listens on a certain UDP port. I am trying to use Socket.BeginReceiveFrom for this purpose. In this scenario the remote clients (hundreds of them) send most of the UDP messages between 17:00 and 19:00 hours. Rest of the time any incoming messages are extremely rare. So after I execute a Socket.BeginReceiveFrom, we just wait for the AsyncCallback to happen and this can sometimes take 20 or more hours. ...
17
2104
by: Alphonse Giambrone | last post by:
I am building a web app for users to add/edit data. They may add/edit several records during a session. When they are done (not necessarily immediately, could be 10 or more minutes later), I need to send an email with some summary info of what was added/edited. I can keep track of the records by using the sessionid or user's login, but how can I determine when to send the email and who the user was since there is no session info available...
7
2910
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the database into classes, which are used throughout the application. I have made class collections which, upon reading from the DB, create an instance of the class and store the DB values in there temporarily. My problem is that if user1 looks at...
4
1911
by: Dominique Vandensteen | last post by:
I need to receive an event when a form has a certain time of inactivity. Deactivate and Activated events are not good enough. With these events I can't find out inactivity if the form is simply left open without doing anything else... Anybody an idea how to do that?
1
349
by: Dean J Garrett | last post by:
We have a need to determine whether a user is inactive or not, and present a pop-up to have them either logoff or renew the session. After 15 minutes of inactivity, the pop-up would ask the user to click Cancel if they wish to logoff, or click OK to renew the session. The pop-up would also say something like "Your current session will expire in 2 minutes at 1:42pm". Thanks!!
3
5757
by: Dave Smithz | last post by:
Hi there, I have a website where users can log into. This users sessions as I believe most people use when implementing a login section of a website (each php page first checks a valid parameter has been set to authorise that the user has logged in and if it is not found it redirects the user to the login page). I have my code and it works fine, however on the live server, after a period of inactivity the user will be logged out...
0
7957
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8020
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6675
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5839
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5421
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3875
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.