Finally got the IDEA to set the cookie in vaadin. Please find the code snippet below what i have tried.
I have set the cookie in Vaadin using the javascript api and now I am able to read this cookie in Ext-JS page.
Page().getJavaScript().execute("document.cookie='"+key+"="+value+"; path=/'");