Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Using cookies with WEBSOCKET_XHR
I tried using the following example to read and write cookies in my application: https://vaadin.com/wiki/-/wiki/Main/Setting+and+reading+Cookies
I am using websockets, so I updated my transport type to WEBSOCKET_XHR, yet VaadinService.getCurrentResponse() always returns null for me. Is there a different example specific to WEBSOCKET_XHR, or something else I'm missing here?
I am getting the same problem. I can't find any easy way to set cookies with WEBSOCKET_XHR.
If anyone finds out how to do it, please share :)
Hi, when using
I have problems if the cookie value contains a @
Should I encode special chars?