Posted on: 3/5/2015 11:59:58 PM | Views : 669

Hello everyone, I have done some research and found this http://www.dotnetcurry.com/showarticle.aspx?ID=453 to keep my session alive. I am able to implement this on pc and it's working fine. However, this doesn't seem to work on iPad or iPhone. I believe it is because when the iPad went to sleep or when the user uses the other app, the SetInteral code in the javascript is not able to run at the background (this is just my thought).
<script language="javascript" type="text/javascript"> $(function() { setInterval(KeepSessionAlive, 10000); }); function KeepSessionAlive() { $.post("/Shared/KeepSessionAlive.ashx", null, function() { $("#result").append("<p>Session is alive and kicking!<p/>"); }); ...

Go to the complete details ...