Welcome Guest, Not a member yet? Register   Sign In
How to add session data
#1

This may sound like a ridiculous question, but I'm trying to work out how to add data to the session (to indicate a user has logged in). The documentation here says:
Quote:You can simply assign data to the 
Code:
$_SESSION
 array, as with any other variable. Or as a property of 
Code:
$this->session
.

How do you add it as a property of $this->session? I can't seem to find a relevant method anywhere and everything online seems to point to set_userdata(), but apparently, that's the 'old' method. I don't want to use the 'old' method, I want to use the new one!
Reply


Messages In This Thread
How to add session data - by chillifish - 07-17-2018, 12:51 PM
RE: How to add session data - by neuron - 07-17-2018, 10:52 PM
RE: How to add session data - by chillifish - 07-18-2018, 02:52 AM
RE: How to add session data - by neuron - 07-18-2018, 11:07 PM
RE: How to add session data - by dave friend - 07-23-2018, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB