Click here to Skip to main content
15,912,072 members

Comments by sandy_56 (Top 4 by date)

sandy_56 7-Aug-14 8:02am View    
Let me explain you the issue, I am currently facing. After web page get loaded and I keep it ideal, after 18 mins warning message is displaying as required. If I will not click on "Ok" or "Cancel" button for remaining 2 mins. Lets say I clicked on "Cancel" button after the 3 mins when Warning message dispaly. Idealy 2nd message should display to inform that session expired but its not happening. Somehow "timeOnPageLoad" variable is getting reset to new time and thats why code is waiting for another 2 mins to dispaly 2nd message.(See below code line)


var cancelCurrentTime = new Date()
//time for expiry
var timeForExpiry = timeOnPageLoad.setMinutes(timeOnPageLoad.getMinutes() + parseInt(sessionTimeout));


Because of the time getting reset whole logic is failing. It would be appriciated if you know any solution for this.
sandy_56 5-Aug-14 9:32am View    
Warning message should dispaly till the session is not timed out. Once time reached to that limit (in my case 20 mins after page loaded) warning message needs to be close in order to expire the session and redirect to SessionExpired page. In current situation message will display on page till user will not click "Ok" or "Cancel". In that case what the use of Session time out period?
sandy_56 30-Dec-13 1:28am View    
Thanks for your responce Sergey
sandy_56 29-Dec-13 2:57am View    
Deleted
Thanks for your reply Sergey. Here is the description you required,