|Cookie behavior in RAP SWT [message #1750353]
||Tue, 20 December 2016 10:19
| Loki Felix
Registered: December 2016
I am new to RAP/RWT development and making some test application. I ant to set a cookie for my domain in the RWT response.|
I use the following code (adapted liberally from programcreek com/java-api-examples/index.php?source_dir=rap-osgi-tutorial-ece2011-master/com.codeaffine.example.rwt.osgi.ui.example/src/com/codeaffine/example/rwt/osgi/ui/example/slides/CookieUtil.java)
Cookie testCookie = new Cookie( "username", "felix" );
testCookie.setMaxAge( -1 );
RWT.getResponse().addCookie( testCookie );
I see no exception in my application, it goes through the lines without problem (debug mode), but looking at the browser side cookie, in firefox, I do not see a cookie for my domain except JSESSIONID.
Is there some additional operation to do to create the cookies ?
Powered by FUDForum
. Page generated in 0.01953 seconds