Welcome Guest, Not a member yet? Register   Sign In
Session class only work on localhost...
#1

[eluser]toopay[/eluser]
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 :
Quote: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.

Thanks


Messages In This Thread
Session class only work on localhost... - by El Forum - 12-21-2010, 07:31 PM
Session class only work on localhost... - by El Forum - 12-21-2010, 07:49 PM
Session class only work on localhost... - by El Forum - 12-21-2010, 10:52 PM
Session class only work on localhost... - by El Forum - 12-22-2010, 01:54 PM
Session class only work on localhost... - by El Forum - 12-22-2010, 03:22 PM
Session class only work on localhost... - by El Forum - 12-22-2010, 03:55 PM
Session class only work on localhost... - by El Forum - 12-23-2010, 04:05 AM
Session class only work on localhost... - by El Forum - 12-23-2010, 10:24 AM
Session class only work on localhost... - by El Forum - 12-23-2010, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB