troubleshooting Question

Automatic/Integrated login to Wordpress using PHP

Avatar of ishwarjoshi
ishwarjoshi asked on
PHPWordPress
6 Comments1 Solution1661 ViewsLast Modified:
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.

Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros