title: How to set cookie in Vaadin and get it in front end?
body: <p>I have set the user defined cookie in Vaadin response object and tried to get that cookie in Ext-JS file but I was not able to get it, just getting as null value. Can anyone give me an <strong><em>IDEA</em></strong> of </p>
  
  <p>*<strong><em>How to get that cookie Or Is there any alternative way to set user defined cookie in Vaadin response and get it in client side?</em>*</strong></p>
  
  <p><em><strong>Here is my scenario :</em></strong> </p>
  
  <p>Both frameworks are running in different applications such as Vaadin in 3030 port and Ext-JS in 7070 as well. I have set the cookie in Vaadin framework and tried to get it in Ext-JS after redirect the page from Vaadin to Ext-JS. </p>
  
  <p><em><strong>Please find the code below what I have tried,</em></strong></p>
  
  <p>To redirect page from Vaadin to Ext-JS :</p>
  
  <pre><code>UI mainWindow = operationContext.getMainWindow();
  mainWindow.getPage().setLocation("http://localhost:7070/index.jsp"); 
  </code></pre>
  
  <p>Set the cookie in Vaadin :</p>
  
  <pre><code>Cookie myCookie = new Cookie("tempKey", "Hi");
  VaadinService.getCurrentResponse().addCookie(myCookie);
  </code></pre>
  
  <p>Get the cookie in Ext-JS :</p>
  
  <pre><code>Ext.util.Cookies.get('tempKey');
  </code></pre>