Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To redirect to the login page in FrontAccounting using the API module, you can use the following code:

// Include the API module
include_once('api/api_includes.php');

// Redirect to the login page
session_destroy();
header("Location: " . $path_to_fronaccounting . "index.php");
exit();

Replace $path_to_fronaccounting with the path to your FrontAccounting installation directory.

This code will destroy the current session and redirect the user to the login page of FrontAccounting.