$session->set()
Sets one or multiple session values by key
Parameters
Name | Type | Default | Description |
---|---|---|---|
$key * | array |string |
– | The key to define or a key-value array with multiple values |
$value | mixed |
null |
The value for the passed key (only if one $key is passed) |