Use WP user status (logged_in) to manage access to independent application

You can access to any WordPress functions if you first include the wp-load.php to your custom PHP page.

<?php
require_once('path/to/wp-load.php');

if( ! is_user_logged_in() ) {
  auth_redirect();
}

// Your application starts from here...

?>