How to add session data without using set_userdata? The docs doesn't have an example. |
Hi,
The documentation has an example of how to add data using set_userdata. PHP Code: $newdata = array( Sorry, but I don't get it. How can I do that with the same example above without using set_userdata? Cheers! (01-14-2022, 05:22 AM)castle Wrote: Hi, You can use the session helper PHP Code: session()->set('key',$newdata) or PHP Code: $_SESSION['key'] = $newdata
How about
PHP Code: $this->session->language = $language; Is it ok to do that? |
Welcome Guest, Not a member yet? Register Sign In |