469,357 Members | 1,802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,357 developers. It's quick & easy.

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 1703
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,503 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

Post your reply

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

Similar topics

15 posts views Thread by Joshua Beall | last post: by
3 posts views Thread by Enoch Chan | last post: by
3 posts views Thread by Dan Walls | last post: by
2 posts views Thread by boekhocg | last post: by
reply views Thread by joseph conrad | last post: by
reply views Thread by Aarchaic | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.