Welcome Guest, Not a member yet? Register   Sign In
Sessions CodeIgniter vs sessions PHP
#5

[eluser]kurucu[/eluser]
Why not, because you don't understand it or because you see something more in the $_SESSIONS array?

The session library provides the following:
- Automatic session creation/destruction
- The ability to store any number of variables against the session
- The ability to retrieve those variables
- The ability to set flash variables that only persist for one request
- The ability to choose to store the data in the cookie or in the local database
- The ability to encrypt the cookie data

There is functionality there that PHP's native sessions do not provide, and in a well packaged class.

You can easily use them in a similar way by autoloading the session, and using set_userdata and userdata to set and retrieve variables, rather than in array elements.


Messages In This Thread
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 04:02 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 04:47 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 05:52 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 05:56 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:04 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:09 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:15 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:22 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:31 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:44 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:54 AM
Sessions CodeIgniter vs sessions PHP - by El Forum - 09-17-2009, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB