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

That's fair. And there's a variety of working styles it supports.

session()->set() and session()->get() are the typical pair for usage. The session libs were pretty much a straight port from CI3 so I wasn't involved in that decision. I would guess a user wanted that ability and submitted a PR for it. We'd be open to a PR for pop, if you want to tackle it. Must support all of the current drivers, which should be relatively painless for something like this.

How often would you see that used? I don't think I've ever actually used a push on session data, to be honest. Typically I'd just grab the value from the session, make any modifications, then set it to the new value.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB