I have a soap_server with acl. My client received user credentials from me to access the ws.
My problem is that my client uses threads to access my soap service. And on occasions I think that 2 threads login at the same time (using the same password and username). This causes my app to throw:
session has already been started by session.auto-start or session_start()
When running the code:
$identity = $auth->getIdentity();
I've searched the internet and found that this is a (common) problem in ZF? I couldn't find a solution. Is there something I should do when I do:
$authObject = $adapter->getResultRowObject(null, 'password');
$auth->getStorage()->write($authObject);
Do anyone know how to handle simultaneous access using the same password and username?
EDIT Would it be ok to do something like this:
$authObject = $adapter->getResultRowObject(null, 'password');
$authObject->uuid = uniqid();
$auth->getStorage()->write($authObject);
Would this increase the chance of avoiding collision if a user logs in with the same account? Is it a security risk to alter the authObject?