Asp.net

Using Ajax Call Keep session Alive

Using Ajax Call Keep session Alive

Use Below javascript to keep session alive in master page
<script type=”text/javascript”>
setInterval(‘pingSession()’, 50000);
var jqping = jQuery.noConflict();
function pingSession()
{
      
jqping.ajax({
url: ‘Default.aspx’,
error: function (){

},
success: function (response) {

},
complete: function () {

}
});
}
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.