title: android - share session between two webviews?
body: <p>first of all, can someone please explain how does <code>CookieManager.getInstance()</code> work? I don't really get how I can get the session from webview? Lets say if I have this </p>
  
  <pre><code>CookieSyncManager.createInstance(WebviewPage.this);
  CookieManager cookieManager = CookieManager.getInstance();
  </code></pre>
  
  <p>Do I get the session from the class named <code>WebviewPage</code>? but what if I named my actual <code>WebView</code> to <code>webview</code>, how can <code>cookieManager</code> get the session of <code>webview</code>? not even talk about if I had two <code>WebView</code>, <code>webview1</code> and <code>webview2</code>. How do I know which session that was stored in <code>cookieManager</code>?? </p>
  
  <p>My main question is...I have two activities and one webview in each activity. How can I get the session from Activity A and pass it to the webview in Activity B?</p>
  
  <p>Thanks!!!</p>