Actually I am doing a single sign in two different domains, after successful logged in, whenever mobile browser communicating with one domain, we have to send the background request (AJAX call) with cookie to other domain to keep the session alive. In case of form submission browser able to manage the cookies for the domain and send in request. However AJAX call fails to send the cookies.
Joined: Nov 08, 2001
Ajax can not be used to talk to a second domain. Same Origin Policy [unless the browser supports CORS].