SessionHelper(View $view, array $config = )¶
As a natural counterpart to the Session object, the Session Helper replicates most of the object’s functionality and makes it available in your view.
The major difference between the SessionHelper and the Session object is that the helper does not have the ability to write to the session.
As with the session object, data is read by using dot notation array structures:
['User' => [ 'username' => '[email protected]' ]];
Given the previous array structure, the node would be accessed by
User.username, with the dot indicating the nested array. This
notation is used for all SessionHelper methods wherever a
Read from the Session. Returns a string or array depending on the contents of the session.
Check to see whether a key is in the Session. Returns a boolean representing the key’s existence.