javascript - Track last ajax call of website -
i know bit stupid question bit meaningless still wanted know there way track last ajax call on page.
actually issue developed application works ajax , many ajax calls happening different different actions if no ajax request call 10 mins. expire session don't want on ajax call.
what want
if no activity happens in 10 mins. don't wanna if click or keyboard activity happens make 1 more ajax in after 10 mins. of click session not expire.
but that's not issue write script issue i've lots of page , lots of different ajax call's want track last ajax call time on page.
i don't know if there's possible way or not didn't write code yet if possible i'll start writing script otherwise i'll find way appreciate if suggest me way it.
thanks
you can use ajaxsetup
, increment variable in ajaxsetup
. because ajaxsetup
call in every ajax
call
see documentation of ajaxsetup http://api.jquery.com/jquery.ajaxsetup/
Comments
Post a Comment