Welcome Guest, Not a member yet? Register   Sign In
Confusing Session Class change
#3

In CI2, the Session library was simply another class that was used instead of PHP sessions, IIRC. In CI3, the native PHP session handling functions are used behind the scenes, and the Session library adds additional features on top of it, like Flash and Temp session variables, etc.

However, it's not using native PHP sessions in the way that I believe you're thinking about it. Instead, session_set_save_handler is used to specify one of the drivers should be used to handle the saving and retrieving of session values. Because PHP knows about the class, though, you can use $_SESSION just fine, once the session has been started.
Reply


Messages In This Thread
Confusing Session Class change - by natefrogg028 - 12-30-2015, 05:06 PM
RE: Confusing Session Class change - by skunkbad - 12-30-2015, 05:51 PM
RE: Confusing Session Class change - by kilishan - 12-30-2015, 09:33 PM
RE: Confusing Session Class change - by mike7418 - 12-31-2015, 05:06 AM
RE: Confusing Session Class change - by mike7418 - 12-31-2015, 04:06 PM
RE: Confusing Session Class change - by mwhitney - 12-31-2015, 11:37 AM
RE: Confusing Session Class change - by Narf - 12-31-2015, 08:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB