Automatic Login


If you wish to automatically login visitors to WebFileShare without asking them to fill in the login form, there are two ways:

http://YOUR-SITE.COM/WebFileShare/?page=login&action=login&nonajax=1&username=USERNAME&password=PASSWORD

Set the session programmatically

Redirect users to a PHP script like this:

<?php
//start WebFileShare session
session_name('WebFileShareSID');
session_start();
 
$username = "admin";
 
//set logged in username
$_SESSION[['WebFileShare']][['username']] = $username;
 
echo "You are now logged in as '".$username."'.";
exit();

Copy the above code inside a file named “autologin.php” and place it inside the Web File Share installation folder and then just access “http://www.your-site.com/WebFileShare/autologin.php



Article ID: 849
Created On: Wed, Nov 22, 2017 at 9:42 AM
Last Updated On: Wed, Nov 22, 2017 at 9:42 AM
Authored by: KB Admin02 [[email protected]]

Online URL: https://kb.quikbox.com/article.php?id=849