Session Module
This module gives you access to the Session class from your website documents. This is necessary since we are not using native PHP sessions. The Session class permits you maintain a user's "state" and track their activity while they browse your site. The Session class stores session information for each user.
For more information about the methods accessed by these tags, please see the Session Class section of the CodeIgniter User Guide and the DB Session Class section of this manual.
<?php get('core.session.userdata', 'item'); ?>
Returns a specific item from the session array.
<?php get('core.session.set_userdata', 'item', 'new_value'); ?>
Adds or changes data in the "userdata" array.
<?php get('core.session.unset_userdata', 'item'); ?>
Deletes a session variable from the "userdata" array.
<?php get('core.session.flashdata', 'item'); ?>
Returns "flash" data for the given key.
<?php get('core.session.set_flashdata', 'item', 'value'); ?>
Sets flash data which will be available only in next request.
<?php get('core.session.keep_flashdata', 'item'); ?>
Keeps existing "flash" data available to next request.