mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	prevent acumulating cookies on account change
This commit is contained in:
		
							parent
							
								
									f8904dca9d
								
							
						
					
					
						commit
						033e6822a2
					
				| @ -111,6 +111,12 @@ public class SingleSessionManager { | |||||||
|                     account.getBaseUri(), |                     account.getBaseUri(), | ||||||
|                     context.getApplicationContext(), |                     context.getApplicationContext(), | ||||||
|                     true);    // TODO remove dependency on OwnCloudClientFactory |                     true);    // TODO remove dependency on OwnCloudClientFactory | ||||||
|  | 
 | ||||||
|  |             //the next two lines are a hack because okHttpclient is used as a singleton instead of being an | ||||||
|  |             //injected instance that can be deleted when required | ||||||
|  |             client.clearCookies(); | ||||||
|  |             client.clearCredentials(); | ||||||
|  | 
 | ||||||
|             client.setAccount(account); |             client.setAccount(account); | ||||||
|             HttpClient.setContext(context); |             HttpClient.setContext(context); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user