method setSession documentation in bbn\User
Sets the given attribute(s) in the user's session.
function($attr)
{
if ($this->session->has($this->userIndex)) {
$args = \func_get_args();
if ((\count($args) === 2) && \is_string($args[0])) {
$attr = [$args[0] => $args[1]];
}
if (is_array($attr)) {
foreach ($attr as $key => $val) {
if (\is_string($key)) {
$this->session->set($val, $this->userIndex, $key);
}
}
}
}
return $this;
}
Sets the given attribute(s) in the user's session. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions