Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different responseObjects for DIOSSystem systemConnectwithSuccess: and DIOSUser userLogin: #109

Closed
andrewjlow opened this issue Aug 1, 2014 · 1 comment

Comments

@andrewjlow
Copy link

Hi there,
I use DIOSUser userLogin: success: failure: to login to my app and server.

To check whether the session is still valid, I use DIOSSystem systemConnectwithSuccess: failure:

If I login as the administrator the session check works - the responseObject for each are for the same session.

However if I log in as just an authenticated user- not the administrator with no roles- the session check does not work. The responseObject I get back in the call DIOSSystem systemConnectwithSuccess: failure: is for an anonymous user session and the session id is totally different to the responseObject I got back for the userLogin.

Would anyone know what the problem is or what I am doing wrong?
Please let me know if any additional information is required from me.
Thank you!

@kylebrowning
Copy link
Owner

Set your NSURLCache to 0

    NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:0
                                                            diskCapacity:0
                                                                diskPath:nil];
    [NSURLCache setSharedURLCache:sharedCache];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants