Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Cookie behavior in RAP SWT(RAP,SWT,Cookie)
Cookie behavior in RAP SWT [message #1750353] Tue, 20 December 2016 10:19
Loki Felix is currently offline Loki FelixFriend
Messages: 1
Registered: December 2016
Junior Member
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/

    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 ?
Previous Topic:[ANN] RAP 3.2 M4 published
Next Topic:rap deployment as stand-alone jetty app
Goto Forum:

Current Time: Sun Oct 17 03:33:19 GMT 2021

Powered by FUDForum. Page generated in 0.01973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top