Remember me functionality

Hi,

I want to implement a “remember me” option in my Play 2.8 website. So far the session’s maxage config is set to null which means that the user has to log in again after closing the browser (or after an “arbitrary” period on mobile).

I have been trying to set the maxage property dynamically at runtime depending on the user’s preference (ie a cookie) but I haven’t been successful so far. It seems that the maxage is fixed at startup time

Is there any way do accomplish this?