I'm using Devise and Omniauth for user authentication.

I want the users to stay signed in for 2 weeks after the authentication. However, whenever the user closes the browser window and reopen it, he gets the login screen again.

What is the correct configuration for the user to stay connected even after the browser was closed and re-opened?