Problem with Codeigniter session

Asked

Viewed 387 times

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?

  • No, I’m using Codeigniter

  • In the other controller you load the lib? I recommend putting in the autoloader.

  • Exact Luis, I load the lib Session in the autoloader file

  • 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

  • I also checked that Luis, but still unsuccessful...

  • 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?

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.