473,395 Members | 1,422 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,395 software developers and data experts.

alerting user before session expires

Hi all,

I have a small query. I wanted to alert user before a minute session gets expired. Is this possible.
Oct 8 '07 #1
3 1755
Hi all,

I have a small query. I wanted to alert user before a minute session gets expired. Is this possible.
How are your sessions stored?
Oct 8 '07 #2
When user logs in to application session will be created and will be stored in database and also cache.

At present according to application when user tries to navigate the page the session time will be compared and if it is more that 30 minutes user will be redirected to login page.

Now we want in way that when the session time is 29 minutes, an alert message should be displayed stating that "Your session is about to expire. Do you want to continue the application" with options yes and no.

when user clicks on yes session should be refreshed. When user click on no page stays back the way it is.

This is my requirement.


Thanks in advance for help.
Oct 8 '07 #3
numberwhun
3,509 Expert Mod 2GB
When user logs in to application session will be created and will be stored in database and also cache.

At present according to application when user tries to navigate the page the session time will be compared and if it is more that 30 minutes user will be redirected to login page.

Now we want in way that when the session time is 29 minutes, an alert message should be displayed stating that "Your session is about to expire. Do you want to continue the application" with options yes and no.

when user clicks on yes session should be refreshed. When user click on no page stays back the way it is.

This is my requirement.


Thanks in advance for help.
Well, you could possibly put in a test that checked if the time left is equal to 29 minutes and then put in some code if it is to put the message out to a _new target window, which would pop up a new message window. I would have to research it, but I think you could even specify the size of the window so it isn't too large.

Regards,

Jeff
Oct 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
3
by: PM | last post by:
I'm trying to make a kind of search history containing the 3 last searched words. So I'm using 3 Session Variables: Word1 / Word2 / Word3. In order to get this history working, I need to put the...
3
by: Enoch Chan | last post by:
I would like to set a Session variable to a value. In Vbscript it should be Session("ZoomValue")=500 How can I set this session variable by using Javascript? Thanks
3
by: Dan Walls | last post by:
Hi, I am looking to clean up some database locks whenever a user session ends. A user session ends whenever they: a. shut down the browser and the session times out after 20 mins (20 mins is...
4
by: RA | last post by:
Session("ListBoxHold") = document.getElementById("lstCodes") The above statement gives an error "Object Expected" Any Clue?
2
by: boekhocg | last post by:
Hi, I'm looking for options on how to allow a particular user to be logged in only once at one time. In other words, not allow a user to login on two different machines and in so creating two...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
0
by: Aarchaic | last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening First off i just post 3 detials like a name a age and a favourite...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.