CodeIgniter Forums
print session array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: print session array (/thread-16695.html)



print session array - El Forum - 03-14-2009

[eluser]Amit Patel[/eluser]
Hello All,

How can i print session array using print_r() . We can retrive result using key like " $this->session->userdata(some key)"

but how can i print it.

Waiting for your reply...


print session array - El Forum - 03-14-2009

[eluser]pistolPete[/eluser]
Code:
print_r($this->session->userdata);