Closed
Description
on the document:
https://github.com/bcit-ci/CodeIgniter4/blob/develop/user_guide_src/source/libraries/sessions.rst
.. important:: The
get()
method WILL return flashdata items.
and
.. important:: The
get()
method will NOT return tempdata items.
on the source code:
https://github.com/bcit-ci/CodeIgniter4/blob/develop/system/Session/Session.php#L432
$userdata = [];
$_exclude = array_merge(
['__ci_vars'], $this->getFlashKeys(), $this->getTempKeys()
);
foreach (array_keys($_SESSION) as $key)
{
if (! in_array($key, $_exclude, true))
{
$userdata[$key] = $_SESSION[$key];
}
}
return $userdata;
There are any wrong. Perhaps, the first.
Metadata
Metadata
Assignees
Labels
No labels
Activity