Session::put (method)

Return to Knowledgebase

Purpose

Adds information to a user\'s session

Location

users/classes/Session.php

Parameters

This function does not take any arguments

Example

Session::put(\'newData\',\'Signed in with google\');

Further Documentation:

Adds to the session variable. The name attribute can be arbitrary. For instance, UserSpice adds a language attribute to tell us what language a user prefers. That could look like