Inactive Timeout Warning for E-Commerce Websites


We have seen in almost all websites that after certain time user automatically gets signed out. I had received a requirement where after 10 minutes of inactivity our site will show a warning that “You are about to sign out” and within 1 minute of this warning if user don’t respond the site will sign the user out.

How to proceed:
First prototype: So we decided first JavaScript will check for idle time and show warning, and after 1 more minute, do an Ajax call to sign user out. Implemented it.

We all know advance users will open the site across tabs. Now suppose user kept Tab-1 inactive and working on Tab-2. So according to our first prototype Tab-1 will sign him out after total 11 minutes of inactivity although he is working on Tab-2. Need to think of a solution.

View original post 292 more words