how to access session data in the view

abdul - 2 months ago

hi i added session data in the controller using $this->load->library('session'); $this->session->set_userdata('pending','TRUE'); and then we i tried to access in the view its empty {{ session:userdata name="pending" }}

please help

keevitaja - 2 months ago

@william lol, the guy is asking about v2 codigniter code!

https://codeigniter.com/userguide2/general/views.html

And i think session data becomes available on the next request in codeigniter. But i am not sure... it has been so long

william - 2 months ago

@keevitaja lol. Maybe i need to read the questions in full :)

william - 2 months ago

@keevitaja lol. Maybe i need to read the questions in full :)

william - 2 months ago

Is it possible to submit a comment several times?

william - 2 months ago

Is it possible to submit a comment several times?

keevitaja - 2 months ago

Yes it is

keevitaja - 2 months ago

Yes it is

keevitaja - 2 months ago

Yes it is

abdul - 2 months ago

I'm using v2 and my problem i can not show the session data in the view which using template engine lex