Implementing the remember me feature

The remember me feature allows users to automatically authenticate themselves with the web application even after they have closed the browser, or the HTTP session has been destroyed, without having to enter their usernames and passwords. If a user has previously authenticated themselves and chose to be remembered, the web application will, remember the user using HTTP cookies.

Essentially, with the remember me feature, your application can consume two kinds of login credentials:

  • A username and password combination
  • A valid HTTP cookie previously created by the web application

Let's think of the login/logout process, putting the remember me functionality into play this time. When a user requests the web ...

Get Data-Centric Applications with Vaadin 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.