Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Cookies?
Cookies? [message #769319] Wed, 21 December 2011 19:43 Go to next message
jamie  is currently offline jamie Friend
Messages: 6
Registered: July 2009
Junior Member
I have a user login panel that pre-empts my RAP application from loading. When the user closes their browser I'd like to store the user into the browser as a cookie.

Any idea on how to do this?
Re: Cookies? [message #769523 is a reply to message #769319] Thu, 22 December 2011 08:36 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

You can either use

RWT.getResponse().addCookie( ... );

to write cookies directly or, even better, use RAP's persistent setting
store, which stores data on the server. It sets a cookie under the hood
to be able to recognize the user:

RWT.getSettingStore().setAttribute( ... );

HTH, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Cookies?
Next Topic:Using RWP for portlets
Goto Forum:
  


Current Time: Fri Apr 19 15:40:43 GMT 2024

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

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

Back to the top