Lifetime session for user

Hi,
is it possible to set the session lifetime to “forever”?

I am developing an app and the user should stay logged in as long as he logs out manually.

Thanks,

Robert