CodeIgniter Forums
Modified profiler to show session data - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Modified profiler to show session data (/showthread.php?tid=2991)



Modified profiler to show session data - El Forum - 09-03-2007

[eluser]Nillian[/eluser]
Hey,

I've just downloaded OB Session (which is brilliant) and during my initial tinkering, I wanted the profiler to display the session data so I could keep track of what I was doing.

Now, just to warn you, it's a bit messy and I provide this with a "use at your own risk" warning! Smile

Currently, it will display the userdata, and session data separately, with their own headings under the fieldset 'SESSION DATA'. It also colours new and old flash data red and green respectively, so you can keep an eye on that. It also supports the native CodeIgniter session library, too, and will switch to a more basic view if it can't find OB Session (currently tested for by checking for the 'ro_userdata' method, which I realise is a bit of a bodged way of doing it, but hey, it works for my needs!)

Again, this was just for my purposes, just found it useful so I thought I'd upload it. Just drop the 'Profiler.php' file into your application/libraries folder and add the extra language-file lines to language/english/profiler_lang.php

I hope it works ok :-S

Direct file link: session_profiler.zip

Wiki Page: http://codeigniter.com/wiki/Session_Profiler/


Modified profiler to show session data - El Forum - 01-06-2008

[eluser]sikkle[/eluser]
I appreciate that, i love to be able to have much information possible when i have profiler running.

thanks for taking time to do that.


Modified profiler to show session data - El Forum - 01-06-2008

[eluser]Nillian[/eluser]
No problem, I'm glad someone will find it useful :-)


Modified profiler to show session data - El Forum - 09-15-2010

[eluser]brettalton[/eluser]
I think session data in the profiler is very important, but when you write a library to add the functionality, should you not extend it instead of overwriting it?

Also, they're looking for implementation in this bug: https://bitbucket.org/ellislab/codeigniter/issue/57/add-session-userdata-to-a-profiler-section