how to access session data in the view
Created 6 years ago by abdul

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  —  6 years 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  —  6 years ago

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

william  —  6 years ago

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

william  —  6 years ago

Is it possible to submit a comment several times?

william  —  6 years ago

Is it possible to submit a comment several times?

keevitaja  —  6 years ago

Yes it is

keevitaja  —  6 years ago

Yes it is

keevitaja  —  6 years ago

Yes it is

abdul  —  6 years ago

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