This problem is due to the multi-account access to the unified server, because the server has received SessionID, so the account information cannot be distinguished.
So you need to reset the cookie at the time of the mobile request, the following steps:
1. When logging in, first save the value of response.allheaderfields[@ "Set-cookie"]
[[Nsuserdefaults Standarduserdefaults] setvalue:response.allheaderfields[@ "set-cookie"] forkey:[nsstring stringWithFormat:@ "session_%@_%@", Username,host]];
2. Reset in the request method of overriding afnetworking
NSString *sessionstring = [[Nsuserdefaults standarduserdefaults] objectforkey:[nsstring stringWithFormat:@ " session_%@_%@ ", Username,host]];
[Self.requestserializer setvalue:sesstionstring forhttpheaderfield:@ "Cookie"];
That would satisfy the demand.
IOS uses afnetworking to set cookies