Codeigniter Session Values Not Persisting?

If you're using cookies to store your session data, you must reload page after set_userdata(). That's because cookies are sent within http header There's no need to use sessions when all you want is to pass variable between controller and a model or a view, anyway.

If you're using cookies to store your session data, you must reload page after set_userdata(). That's because cookies are sent within http header. There's no need to use sessions when all you want is to pass variable between controller and a model or a view, anyway.

Thanks. I'm using Ajax/Jquerry-Datatables in the view I submit to. The problem is I need to load up a bunch of data before the datatables render, and the easiest way I found to ensure I had what I need was to put items into the session.

– user464180 Jul 29 at 17:40 Switching to sessions in database should fix the problem. Saving Session Data to a Database @ codeigniter. Com/user_guide/libraries/sessions.

Html – patwork Jul 29 at 17:58 Thanks. Is there anything wrong with using PHP's native sessions? Aside from operating outside of the CI framework, I was curious if issues may occur?

– user464180 Jul 29 at 19:03 Scratch that...while I can set the sessions, once I go to retrieve them, I get an error: Undefined variable: _SESSION – user464180 Jul 29 at 19:14.

Wasn't unserializing my data once passed across. Ugh. Works now.

$this->session->set_userdata($searchData); /*ERROR: Nothing is being set. Fk_eventtype_id = eventtype. Fk_venue_id = venue.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions