Thanks Skenkin, but I couldn't find answer to my question. Am I missing something?
I'm using the SoapHttpTransport class. The authentication tokens for my admin transport as well as user transport are timing out. It appears the timeout seems to be 1 hour.
Here is the piece of code I'm using to authenticate
Code:
Element request = Element.XMLElement.mFactory
.createElement(AdminService.DELEGATE_AUTH_REQUEST);
Element account = request.addElement(AdminService.E_ACCOUNT);
account.addAttribute(AdminService.A_BY, "id");
account.setText(accountID);
Element response = myAdminHttpTransport.invoke(request);
String authToken = response.getElement(AdminService.E_AUTH_TOKEN)
.getText();
myUserHttpTransport.setAuthToken(authToken);
String sessionId = response.getAttribute(
ZimbraSoapContext.E_SESSION_ID, null);
if (sessionId != null) {
myUserHttpTransport.setSessionId(sessionId);
} This code doesn't show it, but after authenticating once, I store the session id and authentication token in a pool that I reuse instead of authenticating every time.
How can I increase the timeout for these tokens?