I have Wordpress site and and now I'm building PHP App on subdomain. I need to get ID of the user who is logged in on Wordpress site.
I tried to include wp-load.php on my sub-domain and tried:
get_currentuserinfo();
echo 'Hey ' . $current_user->display_name;
But no result.
Could you please give me a hint how can I access Wordpress session info from outside Wordpress on Sub-domain and on the same server?
Thanks in advance.