CodeIgniter Forums
Log all session data with Firephp? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Log all session data with Firephp? (/showthread.php?tid=27212)



Log all session data with Firephp? - El Forum - 02-03-2010

[eluser]Boztown[/eluser]
Hey all,

For development purposes I thought it would be great if I could constantly (as in: on every page load) have all the current session data show in my Firephp log console. I want to make sure I'm cleaning up after myself and not leaving certain session variables set which could potentially create issues later.

Right now I'm doing this:

Code:
$this->firephp->log($this->session->userdata());

That doesn't work.

I'm using database sessions so I guess I could rig something up to pull down the user_data field, unserialize it and then trace that... but is that my best option?


Log all session data with Firephp? - El Forum - 02-03-2010

[eluser]theprodigy[/eluser]
Quote:
Code:
$this->firephp->log($this->session->userdata());
That doesn’t work.

Try:
Code:
$this->firephp->log($this->session->all_userdata());

I didn't find it in the user_guide, but they seem to have it in the session class (at least in 1.7.2), not sure about previous versions.