ExpressionEngine

2.5.0 User Guide

Session Library Extension Hooks

sessions_end

Modify the user’s session/member data, also allows for additional session or login methods (ex: log in to other system):

$edata = $this->extensions->call('sessions_end', $this);
if ($this->extensions->end_script === TRUE) return;

$this

The current instantiated Session class with all of its variables and functions, use a reference in your functions to modify.

returns:void

Added in v1.4.0

sessions_start

Reset Session class variables, modify default/guest settings, take over whole session check, etc.

$edata = $this->extensions->call('sessions_start', $this); if ($this->extensions->end_script === TRUE) return;

$this

The current instantiated Session class with all of its variables and functions, use a reference in your functions to modify.

returns:void

Added in v1.4.0

User Contributed Notes

You must have an ExpressionEngine license and have attained a forum rank of "Lab Assistant" (100 posts) to contribute notes to the User Guide