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
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 Sternberg
Messages: 1291
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:Deployment Tool Problem
Goto Forum:
  


Current Time: Mon Oct 20 04:38:46 GMT 2014

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

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