Automatically Log in User
You're probably looking for a combination of:

craft()->userSession->login()

or

craft()->userSession->loginByUserId()

along with setting the userSessionDuration config setting to a really high value.