
Originally Posted by
bumba000
Hello All,
Still working on 1.5.8a w/PHP 8.2.4. I have achieved a session keep alive which works fine, but has one major issue. lol
So I'm activating the function by:
$(document).ready(function(){
timerKeepAlive();
});
The function:
function timerKeepAlive() {
setInterval(function() {
$.ajax({url: location});
}, 300000); //five minutes
}
On a PC this works forever as long as the browser isn't closed. On a mobile it works forever while browsing other tabs. However, when I hit the power button to (for lack of a better term) 'rest/sleep' the phone, the session dies and I come back to an empty cart.
How can I get a visitor's cart to survive a sleeping cellphone?
Thank you,
John
Bookmarks