Aug 8th, 2011, 5:44 AM
Update: I just found this thread again because I needed the autologin feature again and wanted to confirm that it was the first line which is causing the error.
The way Ben wrote it is also working in 2.1:
whereby "clients/forms/index.php?form_id=1" is the startup-page.
The way Ben wrote it is also working in 2.1:
PHP Code:
<?php
session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=utf-8");
require_once("global/api/api.php");
$account_info = array(
"username" => "username",
"password" => "password"
);
ft_api_login($account_info);
header("Location: clients/forms/index.php?form_id=1");
exit;
?>