Welcome Guest, Not a member yet? Register   Sign In
FIY! CI session is saved in $_COOKIE not in $_SESSION
#1

[eluser]CI_avatar[/eluser]
Trivia...
CI cookie is saved in $_COOKIE...
Is CI session saved in $_SESSION? No, its in $_COOKIE.
Did you know that?
#2

[eluser]richthegeek[/eluser]
Yes. Next question, quizmaster
#3

[eluser]saidai jagan[/eluser]
Thanks... Very Informative.
#4

[eluser]Phil Sturgeon[/eluser]
Bloody hell I didn't realize!

Oh wait, it says that in the User Guide and I read it 3 years ago... now I remember.

Quote:The Session class permits you maintain a user's "state" and track their activity while they browse your site. The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie. It can also store the session data in a database table for added security, as this permits the session ID in the user's cookie to be matched against the stored session ID. By default only the cookie is saved. If you choose to use the database option you'll need to create the session table as indicated below.

Note: The Session class does not utilize native PHP sessions. It generates its own session data, offering more flexibility for developers.
#5

[eluser]Colin Williams[/eluser]
Haha. I guess it's a good test of who has read the User Guide.
#6

[eluser]Zack Kitzmiller[/eluser]
Did you guys also know that CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications?

I did.




Theme © iAndrew 2016 - Forum software by © MyBB