jQuery.ajax() uses current page URL instead of specified URL -
if make call on page such index.php:
jquery.ajax("keepalive.php"); jquery makes request index.php instead of keepalive.php.
this request keep session going, don't care result. according the docs, specifying url needed. thoughts on why doesn't work correctly?
your code work if you're using jquery >= 1.5. maximum compatibility, use following:
jquery.ajax({ url: 'keepalive.php' }); this code run in jquery version. hope helps.
Comments
Post a Comment