after_session_start
Overview
The after_session_start
hook executes before the user's session starts, but after the user's visibility rules have been set up and the after_load_user
logic hook has executed.
Definition
function after_session_start($event, $arguments){}
Arguments
Name | Type | Description |
event | String | The current event |
arguments | Array | Additional information related to the event (typically empty) |
Change Log
Version | Note |
6.4.3 | Added after_session_start hook |
Example
./custom/modules/logic_hooks.php
<?php
$hook_version = 1;
$hook_array = Array();
$hook_array['after_session_start'] = Array();
$hook_array['after_session_start'][] = Array(
//Processing index. For sorting the array.
1,
//Label. A string value to identify the hook.
'after_session_start example',
//The PHP file where your class is located.
'custom/modules/application_hooks_class.php',
//The class the method is in.
'application_hooks_class',
//The method to call.
'after_session_start_method'
);
?>
./custom/modules/application_hooks_class.php
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class application_hooks_class
{
function after_session_start_method($event, $arguments)
{
//logic
}
}
?>