Welcome Guest, Not a member yet? Register   Sign In
Log all session data with Firephp?
#1

[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?
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB