Since WordPress 2.8 a filter is provided to set the cookie expiration .
apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )
More details here
Since WordPress 2.8 a filter is provided to set the cookie expiration .
apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )
More details here