i have problem server website hosted on, shared hosting.
when user inactive 20 min logged off , have re-authenticate.
problem me, , since cannot configure server have "hack" dont logged off after 20 min.
, thinking way making jquery function makes post after x minutes user never inactive 20 min. here jquery have tried using solve this.
var ping = setinterval(function(){ $.post( "/users/newproduct.aspx", function( data ) { console.log( data.status ); }, "json"); }, 600000); // 10 min
the problem jquery not seem fire.
have set time down dont have wait 10 min when testing. , know when function fired should write in console?
not experienced jquery not sure if correct.
of have idear wrong?
Comments
Post a Comment