473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1906
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.setTimeout 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
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...
2
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...
14
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. ...
0
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...
17
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...
7
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...
4
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...
1
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.