• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print all session variables?

#1
[eluser]dadamssg[/eluser]
Is there a way to display all your session variables you have stored?

#2
[eluser]talldarkmystere[/eluser]
Have a look at CI's session page: http://ellislab.com/codeigniter/user-gui...sions.html

Just a guess here, but you might try the following:

Code:
$sessData = $this->session->userdata();
print_r($sessData);

#3
[eluser]dadamssg[/eluser]
yeah i tried that. It appears you have to reference an item when you use $this->session->userdata('item');

#4
[eluser]cideveloper[/eluser]
Code:
print_r($this->session->all_userdata());


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.