Set redirect after login/logout

Printer-friendly versionPrinter-friendly version

In order to set you own redirect path after users were successfully logged in - redefine HOME_PAGE constant in 'modules/authorization/authorization.module.php' file. For example:
define('HOME_PAGE', 'admin/');
or
define('HOME_PAGE', ''); - this will redirect to index page

If you wish to refresh page after log in - modify 'modules/authorization/controllers/authorization_controller.php' file, change this line:
redirect(HOME_PAGE);
to
header("Cache-Control: no-cache");

You may modify redirect in logout function in 'modules/authorization/controllers/authorization_controller.php' file:
redirect('login');