1
When I authenticate the user in my application, I save some user information in sessions. This is done in Controller User, Only when I recover this data in another controller, they don’t exist. When I did a test, I printed out all session data in my Controller User, and they appeared, but in another Controller, this data does not appear.
You are using the php native Codeigniter session?
– Luis Henrique
No, I’m using Codeigniter
– Meeeefiu
In the other controller you load the lib? I recommend putting in the autoloader.
– Luis Henrique
Exact Luis, I load the lib Session in the autoloader file
– Meeeefiu
Is your browser cookies enabled? (It sounds like a dumb question, but sometimes it’s the little things that fail). Check the manual to see if it helps you. http://www.plasmadesign.com.br/codeigniter/user_guide-pt_BR/libraries/sessions.html
– Luis Henrique
I also checked that Luis, but still unsuccessful...
– Meeeefiu
Are you using a database? What version of the IC are you using? And how are you creating this data in Session? You can put a code for someone who knows how to make it easier?
– Marcelo Diniz