Apr 4th, 2010, 5:12 PM
Hi Hannes,
That should work... but try this instead. The ft_api_start_sessions function is really just for API forms.
Note, index.php will have to have those session_start() lines at the top as well, otherwise sessions will be lost before the user attempts to log in.
All the best -
Ben
That should work... but try this instead. The ft_api_start_sessions function is really just for API forms.
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: index.php");
exit;
?>
Note, index.php will have to have those session_start() lines at the top as well, otherwise sessions will be lost before the user attempts to log in.
All the best -
Ben