Fixes #4479 adds configuration support for remember me cookie