Hello! How can I log in to a separate site using the same database with WP using this one from WP?

I know that WP uses the micropassword Phpass, I know that salts are stored in wp-config, but I could not find docks on phpass ..

Are there any other options?

Ps. Separate site written in PHP

  • one
    Solution to the forehead: check the validity of the data, authorizing on WordPress, redirect with a specific token to the target site, check the token on the target site and, if correct, authorize using built-in methods (if any) by checking the user name without checking the password. Here is the PHPass itself. - VenZell
  • It would be nice if you also indicated what you have written a “separate site”. - VenZell
  • Added, although the tags showed it :) - RinWorld
  • I meant a specific framework or CMS. The language is clear. The tool is not. Well, that issue is resolved. - VenZell
  • everything is written from 0 :) - RinWorld

1 answer 1

If a separate site is located on the same server, then we look in the wordpress session settings to see how it is stored, if we redirect, we transfer the session_id after we start the session on this id in our application

session_id($_GET('sid')); session_start(); 

so you will get access to the WordPress session where you can check whether the user is authorized or not.

  • Thanks for the help - RinWorld