Part of the EllisLab Network
   
 
Modified profiler to show session data
Posted: 03 September 2007 09:10 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  12
Joined  08-14-2007

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 confused

Direct file link: session_profiler.zip

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

 Signature 

Nillian - Newbie CI coder

Profile
 
 
Posted: 06 January 2008 04:47 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  429
Joined  05-21-2007

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.

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 06 January 2008 06:59 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  12
Joined  08-14-2007

No problem, I’m glad someone will find it useful grin

 Signature 

Nillian - Newbie CI coder

Profile
 
 
Posted: 15 September 2010 08:53 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  19
Joined  11-15-2007

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

Profile