# Part 1 - redirect using DBG_REDIRECT
* in IDE:
# enable the DBG_REDIRECT flag inside the `/system/debug.php` file
* in Admin Console:
# go to the login screen
# type your credentials
# login
# confirm, that the `Debug output above !!!` text is shown instead of the Admin Console
# confirm, that `View Source` of that page won't contain anything except that text (and related markup) and Debugger-related HTML/JS
* in IDE:
# disable the DBG_REDIRECT flag inside the `/system/debug.php` file
* in Admin Console:
# click on the shown link to procced with the redirect
# confirm, that you're seeing an Admin Console
# logout
# Part 2 - redirect using JavaScript
* in IDE:
# open the `core/units/users/users_event_handler.php` file for editing
# add this code at the beginning of the `OnLogin` event code:
```
lang=php
$buffer_count = 0;
while ( ob_get_level() ) {
ob_end_clean();
$buffer_count++;
}
echo 'some output';
while ( $buffer_count ) {
ob_start();
$buffer_count--;
}
```
# save changes
* in Admin Console:
# go to the login screen
# type your credentials
# login
# confirm, that you're seeing an Admin Console
* in IDE:
# rollback changes made to the `core/units/users/users_event_handler.php` file
# Part 3 - redirect using `#redirect#` text
* in Admin Console:
# login
# go to the {nav Website & Content > Labels & Phrases} section
# open URL from the main frame in the new tab (and switch to that tab)
# add the `&ajax=yes` to the current page URL
* in the Database:
# clear contents of the `UserSessions` table
# clear contents of the `UserSessionData` table
* in Admin Console:
# reload the page
# do the `View Source` on the page
# confirm, that page content only contains 1 line of text in `#redirect#url_here&expired=1` format
# replace the tab URL with the provided URL (text after `#redirect#`)
# Part 4 - redirect using `Location` HTTP header
* in Admin Console:
# login
# go to the {nav Website & Content > Labels & Phrases} section
# open URL from the main frame in the new tab (and switch to that tab)
* in the Database:
# clear contents of the `UserSessions` table
# clear contents of the `UserSessionData` table
* in Admin Console:
# reload the page
# confirm, that you're redirect to the login page