I have one parent portal and one child portal. Now, from child portal's page I make an ajax call as follows :
$.getJSON(siteurl + '/DesktopModules/MyServices/API/Welcome/GetPropertiesNegativeBalance/?portalId=' + portalId)
So this ajax call gets fired twice when called from child portal and only once from master portal.
For the first call I get response code 302 with Response body :
<h2>Object moved to <a href="http://www.curacaodemos.com/DesktopModules/MyServices/API/Welcome/GetPropertiesNegativeBalance?portalId=1">here</a>.</h2>
And For the second call I get response code 200 with expected Response body.
But then it logs out the current user.
This doesnt happen when tried with parent portal's user.
Please update with the reason and the solution for the issue.