$( window ).load(function() { $.ajax({ url: '/der/surface/userHasSession', data: { currURL: window.location.pathname + window.location.search }, type: 'GET', xhrFields: { withCredentials: true }, accept: 'application/json', async: false }).done(function (userdata) { console.log('Done'); }) .fail(function (jqXHR, textStatus, error) { console.log('Session Check Fail: '); }) } });
Select allOpen in new window
When I moved my script in body then I am getting error at below line. What is the reason?
$.cookie('VerifySSOLogin',
Error is:
jquery-2.1.4.min.js:2 Uncaught TypeError: $.cookie is not a function