Users not auto login after payment

Is there a way to ensure the users are automatically logged in after redirected back to my site frm paypal?