Log-in a user without issuing a redirect

Is there a way to login a user without redirecting?