Ask Your Question
0

How to redirect to login using the API module in FrontAccounting?

asked 2022-01-07 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-01-04 19:00:00 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-07 11:00:00 +0000

Seen: 10 times

Last updated: Jan 04 '23