Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a Wordpress installation and some php pages (not related to Wordpress). I want to use the same login between Wordpress and My Php pages. When I login from my php, and go to wordpress, it shouldn't prompt me to login again (and vice versa). Can you please tell me how to do this? Thank you.

share|improve this question

migrated from stackoverflow.com Sep 29 '11 at 11:06

This question came from our site for professional and enthusiast programmers.

    
How do you manage the users on your PHP pages? –  hakre Sep 28 '11 at 12:57
    
Users are only in wordpress database. I want to reuse the wordrpess database for logging into my php pages. Thanks. –  M99 Sep 28 '11 at 13:17

1 Answer 1

You can integrate the wordpress authentication with the apache webserver and then configure which additional resources need a login on your webserver. This works with PHP as well with HTML and images.

For more information, please see mod_auth_mysql and phpass.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.