title: How to Auto Login After Registration in WordPress with core php
body: <p>I've been trying for days now to take users who have just registered to my WordPress site and automatically log them in and then redirect them to a URL of my choice.</p>
  <p>By default, WordPress sends you a username and a password, then you must log in manually. This is a total pain. How can i overcome this.</p>
  <p>I have my own registration page(core php page) which successfully adds users into DB. But the point is, i should avoid users to login again.</p>
  <p>Once registration is done, it should automatically <code>redirects</code> to home page or profile page.</p>
  <p>I am a newbie to wordpress functionalities. It would be grateful if someone(who have knowledge on core functionality of wordpress) at least suggests a way/solution.</p>
  <p>Looking forward.<br />
  Thanks</p>