There is no init heandler for login / register
The file where the user session is created / recreated is :
/includes/module/pages/login/header_php.php
action = process, around #84 there are interesting lines:
$_SESSION['customer_id'] = $check_customer->fields['customers_id'];
$_SESSION['customer_default_address_id'] = $check_customer->fields['customers_default_address_id'];
$_SESSION['customers_authorization'] = $check_customer->fields['customers_authorization'];
$_SESSION['customer_first_name'] = $check_customer->fields['customers_firstname'];
$_SESSION['customer_last_name'] = $check_customer->fields['customers_lastname'];
$_SESSION['customer_country_id'] = $check_country->fields['entry_country_id'];
$_SESSION['customer_zone_id'] = $check_country->fields['entry_zone_id'];
You may add here whatever you wish to be tagged to that user as long as he stay logged into de system




(20 votes, average: 4.75 out of 5, rated)