Welcome Guest, Not a member yet? Register   Sign In
The session class has a push method but no pop method
#4

Since the Session drivers work hand-in-hand with core PHP functionality, you don't need special features for this. You can modify $_SESSION directly. So what you've shown is perfect solution.

The only reason we've kept some of the old methods from prior versions of CI is to maintain some backward compatibility and some features like Flash so you don't have to manage it yourself. Otherwise, once the session is initialized with session() you can manipulate $_SESSION directly and it will use the driver you've chosen in the config file.
Reply


Messages In This Thread
RE: The session class has a push method but no pop method - by kilishan - 02-27-2019, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB