It seems like a case of mis(-un)configured Ambient Data Framework (ADF)
. Make sure ADF is configured on your website -- that is the server from where you are making the call to the OData service.
ADF is responsible with sending your client information (e.g. user id, cookies, session id, etc) from a machine to another. It seems like in your case the communication to OData is done without this information. This points to an ADF not being configured properly. Check again the documentation of UGC on how to configured it.
BTW, your example code is not very clear, what it client
?