Attempting to implement an ajax login / signup process (no refresh site with authentication). Using cookies for preserving state. I thought I\'d have this right by now but
I had a similiar problem, and it turned out that the browser settings were blocking third-party cookies (Chrome > Settings > Advanced Settings > Privacy > Content Settings > Block third-party cookies and site data). Unblocking solved the problem!