Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting problem in the session.

when the session cleared then it will be maintain the same page. so user trying to access the same page without knowing the session expiration.

I want to display to the user as "Scrolling" message (graphically) 3 minutes before to the user.

The Scrolling message says "Your Account is secure!. So your session will expire within 3 Minutes" if the page still not active.

How to display message using scrolling to the user...?
Posted

Remember the web is a stateless beast. Once the page is rendered to the browser it has no connection to the server, which doesn't know if the user is still viewing the page, has navigated away or gone to lunch. You would need some type of polling to occasionally contact the server to check the status.

After the session expires if the user refreshes the page it should re-authenticate and refresh the page so it should not remain the same.
 
Share this answer
 
Comments
member60 20-Mar-12 8:25am    
my 5!
try using the time ;
means fetch the time of the server or system and after specified time you displayed the message;
use timer control

try this link:-

http://ajax.net-tutorials.com/controls/timer-control[^]

or use this javascript fuction
as your requirement 'settimeout()'

try this link:-
http://www.w3schools.com/jsref/met_win_settimeout.asp[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900