# 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 (updated)
* in IDE:
1. open the `core/kernel/db/db_event_handler.php` file for editing
2. add this code at the beginning of the `OnEdit` 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--;
}
```
3. save changes
* in Admin Console:
# login
# go to the {nav Website & Content > Languages & Phrases} section
# open any phrase for editing
# confirm, that you're seeing a chosen phrase editing page
* in IDE:
# rollback changes made to the `core/kernel/db/db_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#`)
# (added) confirm, that you'll see an Admin Login Screen with the `Session Expired` error on it
# 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