Hi there. This is my first time to pick CI as a main framework for my project.
I have tried all the CI class, and been so helped, in work on my recent project. And so far, I found unexpected behavior of CI session class. It worked well when i test it on my local computer. But after i uploading it to my host, it doesnt work. I mean, its doesnt fully work.
I still can retrieve the basic data (ip, user agent, last activity and session id). But i can no longer adding custom session data nor retrieve it. I try to check, through the tool in the browser, and I do not found CI cookie.
I wonder, someone ever experiencing this ? And can someone tell me why this happens?
So far, i just found this explanation from CodeIgniter :
A session, as far as CodeIgniter is concerned, is simply an array containing the following information:
The user’s unique Session ID (this is a statistically random string with very strong entropy, hashed with MD5 for portability, and regenerated (by default) every five minutes)
The user’s IP Address
The user’s User Agent data (the first 50 characters of the browser data string)
The “last activity” time stamp.
I already use a lot of functions that contain this library (which had been worked well in my local computer), and i hope someone pointed me to avoid rewrite all of that function with native php function.