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

Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
Running custom scripts when users perform various actions
Viewed 3440 times since Thu, Mar 6, 2014
Custom even scripts
Viewed 2607 times since Wed, Nov 22, 2017
Forcing certain file types to download
Viewed 2753 times since Thu, Mar 6, 2014
External Login Form
Viewed 3982 times since Wed, Nov 22, 2017
Hiding options from the "Open with..." menu
Viewed 2313 times since Thu, Mar 6, 2014
The API
Viewed 4364 times since Wed, Nov 22, 2017
Adding links to the menu
Viewed 2568 times since Thu, Mar 6, 2014
Custom file actions
Viewed 2502 times since Wed, Mar 5, 2014
Translating Web File Share
Viewed 20117 times since Wed, Mar 5, 2014
Calculating MD5 Checksums
Viewed 2696 times since Thu, Mar 6, 2014
MENU