The Transaction Engine which constitutes the core of MX Kollection 3 uses a set of variables to accomplish certain tasks, and to store data (e.g. session or URL variables) that can also be used when hand-coding portions of a page, or writing custom triggers. However, not all variables exist at all times, some of them being created only when certain events or settings exist.
The names of these variables always use the "kt_" prefix. A list of variables, and their existence case follows:
Variables that appear as results of transaction
fields:
· kt_login_id
- stores the ID of the currently logged in user. It is initialized and
can be used after the
user logs in. It corresponds to the $tNG_login_config["pk_field"]
field in tNG_config.inc.php.
· kt_login_user
- stores the user name for
the currently logged in user. It is initializaed and can be used after
the user logs in. It corresponds to the $tNG_login_config["user_field"]
field in tNG_config.inc.php.
· kt_login_password
- stores the password for the currently logged in user. It is used for
the forgot password page, and the welcome e-mail page. It is stored in
un-encrypted form, in order to be visible in the e-mail message to send.
It can only be used after a registration process, and it corresponds to
the $tNG_login_config["password_field"]
field in tNG_config.inc.php.
· kt_login_level
- stores the access level for the currently logged in user. It is available
only if using user authentication based on username, password and user
level, and only after the user logs in. It corresponds to the $tNG_login_config["level_field"]
field in tNG_config.inc.php
· kt_login_page
- stores the URL to the login page specified in the InterAKT Control Panel
> User Authentication. It is used by the Transaction Engine to fill
in the links in the welcome and activation e-mail, and to provide the
redirect for the restrict access to page server behavior. It corresponds
to the $tNG_login_config["login_page"]
field in tNG_config.inc.php
· kt_activation_page
- stores the URL to the activation page. It is used after user registration
to provide the activation link in the welcome / activation e-mail message.
It is obtained from the kt_login_page variable, by replacing the login.ext
section with activate.ext (ext = current extension required by the server-model).
· kt_login_rememberme
- stores the state of the remember me checkbox. Used for the auto-login
feature.
URL variables, used on the account activation
page:
· kt_login_random
- stores the random key generated upon registration. It is available only
when using account activation with random key.
· kt_login_email
- the e-mail address of the user whose account is being activated.