mysql - Passing user id from the WP session to another PHP session


I have a WP site with a membership plugin.

On this site I have a PHP script which runs in an iframe.

They are using the same database.

I need to pass the id of the user to that script so it can use the user data from the database, is that possible?





you can add the session_start in your wp-config.php, just before the call of the wp-settings:

if (!session_id()) session_start();

People are also looking for solutions to the problem: php - Laravel mail with accent in subject


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.