I have a simple separate PHP page hosted in the same directory as my Wordpress blog. This page is standalone so it knows nothing of Wordpress, but will of course receive the same cookies since it's on the same host.
The question is simple: How do I access the logged in Wordpress user's ID from this standalone page?
I know you can access logged in user data via get_currentuserinfo, but that assumes you're running within Wordpress. How do I access this info on a PHP page that isn't delivered from Wordpress, but is on the same host?