This topic is locked

How to secure an external PHP page

11/30/2018 4:36:15 PM
PHPRunner Tips and Tricks
admin

You adding a custom PHP page to PHPRunner application and want this page to be accessible only if user is already logged in into PHPRunner application.
You can do that adding the following code in the beginning of your PHP file. This code assumes that external file resides in the same folder where PHPRunner application is. Otherwise adjust the path to dbcommon.php file accordingly.

require_once("include/dbcommon.php");

if (!Security::isLoggedIn())

exit();