Refresh the login cookie periodically to avoid logouts.