Session timeout

When a Patron signs in and accesses my site, their session ends after they close the browser, forcing them to authenticate with Patreon again. Is there a way I can extend their session to 30 days instead of forcing them to login every time?

If I login using regular WordPress credentials, the settings are respected. However, when the plugin calls wp_set_auth_cookie(), the end time for the wp_logged_in cookie is always at the end of a session.

I looked into this more and passing in the PHP session ID does the trick. In patreon_login.php:

Instead of:

wp_set_auth_cookie( $user->ID);

Use:

wp_set_auth_cookie( $user->ID, true, session_id());

The second parameter (remember me) is not important, the third one is.

This may have to do with the setup you have at your WP site - maybe your cookie lifetime is set short, or your theme or login related plugin does not provide persistent sessions.