01-15-2014 08:11 AM
I am using QNetworkAccessmanager to create connections.
I have two different user accounts accessing the same URL in succession, and the problem is that the second account uses the (cached) credentials of the first account.
The authenticationRequired signal is not fired for the second account.
Is there an option to disable this behavior?
01-15-2014 08:45 AM
are you using the same QNetworkAccessmanager (QNAM) for both calls? I haven't tried it, but I would have two suggestions:
1) try calling qnam->cache()->clear() when the second user calls it
2) explicitly delete the old QNAM and instantiate a new one (e.g. when the different user calls it)