docs: improve session#6593
Conversation
userdata() method does not exist in CI4
This is a historical explanation.
`userdata` does not make sense in CI4.
Move to a more appropriate location.
MGatner
left a comment
There was a problem hiding this comment.
I think the UG used "userdata" throughout to indicate "non-flash data stored by the framework", because some actual $_SESSION items are not included:
$_exclude = array_merge(['__ci_vars'], $this->getFlashKeys(), $this->getTempKeys());I'm fine with making this a little more opaque but we should note somewhere what is not included.
Otherwise: I am in favor of encouraging use of the Session handler over the global variable.
|
There are some notes (important) to describe the items that the
And I added a note for the word "userdata". |
MGatner
left a comment
There was a problem hiding this comment.
Sorry, I missed those other comments. Thank you for updating. LGTM!
Description
Small improvements or fixes.
If we agree, I would like to remve all sample code that uses
$_SESSIONdirectly.Checklist: