Part of the EllisLab Network
   
 
OBSession weirdness…
Posted: 26 November 2007 02:27 PM   [ Ignore ]  
Summer Student
Total Posts:  20
Joined  04-25-2007

Ok, this may seem stupid, but I have to ask…

When using OBSession, if I print_r($this->session) I *SEE* to get the whole CI object:

CI_Session Object
(
    
[CI] => Wcg Object
        
(
            
[_ci_scaffolding] =>
            
[_ci_scaff_table] =>
            
[config] => CI_Config Object
                
(
                    
[config] => Array
                        (
...

Yet, when I look at the data stored in the database(which I am using to store the session data, duh!) it is not all there.

Is this normal to see the CI object in $this->session?
Is this because of the recursion always listed as ”*RECURSION*”?

I was thinking about using the ‘shortcut’ $this->session->CI->parameters to access data from $this->parameters, thinking that it WAS part of the session (and it is!) but it does not seem like the right thing to do…

I know OBSession is not supported by the author anymore, but hope someone else here can answer why I see what is described above…

Profile
 
 
Posted: 01 December 2007 07:21 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  505
Joined  03-20-2006

The next version of ci has basically incorporated the features of Obsession into it’s session lib.

So you can quite safely ditch OBsession and get CI’s new session lib from SVN and use that instead.

Profile
 
 
Posted: 03 December 2007 09:19 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  20
Joined  04-25-2007

Ok, so if I pull the file from SVN, it will integrate with v1.5.4 and not cause any issues? Is that correct?

Profile
 
 
Posted: 03 December 2007 09:21 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  505
Joined  03-20-2006

Obviously make a backup of the original file first, but yes i think it should be fine.

I think all the function names are the same but if you have any problems, make sure the names are the same.

Profile
 
 
Posted: 03 December 2007 09:51 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  505
Joined  03-20-2006

In reply to your first question, you are probably seeing CI stuff in there as obsession has to extend the CI base object. However, it is probably excluding the CI data when it saves session data you define.

Probably. I ain’t no expert.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 62663 Total Logged-in Users: 36
Total Topics: 77201 Total Anonymous Users: 1
Total Replies: 416767 Total Guests: 266
Total Posts: 493968    
Members ( View Memberlist )