This is an old revision of the document!
If you wish to automatically login visitors to FileRun without asking them to fill in the login form, there are two ways:
Using a custom link
http://YOUR-SITE.COM/FILERUN/?page=login&action=login&nonajax=1&username=USERNAME&password=PASSWORD
Set the session programmatically
Redirect users to a PHP script like this:
<?php //start FileRun session session_name('FileRunSID'); session_start(); $username = "admin"; //set logged in username $_SESSION['FileRun']['username'] = $username; //You are now logged in as $username //Redirect to FileRun: header('Location: https://www.your-site.com/filerun/');
- Copy the above code inside a file named “autologin.php” and place it inside the FileRun installation folder.
- Edit to code to match the desired FileRun username and the URL of your FileRun installation.
- Access the URL of the created file (“http://www.your-site.com/filerun/autologin.php”)