I have WP installed in the root of my website.
In the same directory there’s a completely independent application.
What I want to do is the following:
when the user accesses the page containing the application:
- if he is in NOT logged into WP, the application must redirect him to the traditional wp-login page;
- if he IS logged into WP, he can use the application;
Is there any way to get/read WP user data from an independent PHP page?
If not, can you suggest different solutions to avoid users having to authenticate multiple times on the same website (once for the CMS, once for the application)?
Any help is appreciated.