OK I have googled for hours and unable to find a simple example of how would I automatically login somebody into Wordpress. All the solutions are for how to integrated Wordpress login with PHPBB login etc etc.
Here's the situation:
I have written a new website in PHP. I have my own sign-up and log-in screens and my own tables. Now the client wants a Blog so we installed Wordpress. Obviously, we dont want people to sign-up twice (on the website and on the Blog section) nor do we want them to login twice.
I fixed the sign-up problem by looking at the wordpress tables and then inserting the rows in the wp_user and wp_usermeta tables.
Now comes the hard part. When a user logs into my site, I want a way via PHP to log them automatically into Wordpress. Remember, I have already created that user in Wordpress.
Please dont tell me to just drop my login table and use Wordpress login table.