CodeIgniter Forums
OB Session Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: OB Session Question (/showthread.php?tid=3865)



OB Session Question - El Forum - 10-26-2007

[eluser]Unknown[/eluser]
Hi,

I have installed OB Session and it is working ok. Now I am trying to use database to store session data. I have created a ci_sessions table as per OB Session documentation. Now, when I try to enable database session storage by setting
Code:
$config['sess_storage']='database';
data get written into the ci_sessions table but I can no longer use any database functions in my models, although the log shows that database driver class is initiated.

What could be going wrong? I have created the ci_sessions table in the same database that I use for my application. Could it be the problem ?


OB Session Question - El Forum - 10-26-2007

[eluser]Crimp[/eluser]
Oscar moved on to Kohana. Arguably the biggest advantage of OB Session, flashdata, is in the SVN version of CI. I would get a CI copy from SVN and use that Session library now. Try that and see if you still have issues.


OB Session Question - El Forum - 10-26-2007

[eluser]Unknown[/eluser]
Can you point me to the CI SVN ? I have a hard time finding it.


OB Session Question - El Forum - 10-26-2007

[eluser]Rick Jolly[/eluser]
[quote author="dMeilleur" date="1193437212"]Can you point me to the CI SVN ? I have a hard time finding it.[/quote]
Hard time finding it? A forum search for svn will show a thread with a link to svn by derek allard. The second search result (after this thread).


OB Session Question - El Forum - 10-26-2007

[eluser]Derek Allard[/eluser]
http://dev.ellislab.com/svn/CodeIgniter/trunk/


OB Session Question - El Forum - 10-26-2007

[eluser]Majd Taby[/eluser]
I tried the svn version of the session class but it was still saving info into a cookie even when db was set to on (please correct me if i'm wrong). OBSession fits the bill pretty nicely.


OB Session Question - El Forum - 10-26-2007

[eluser]Derek Allard[/eluser]
That's currently correct Zaatar. OBsession is a nice library, and that's the one thing it has that CI native doesn't. I will implement it at some point in the future...

... in my copious free time Wink

Seriously, it'll get in there. I don't have a timeline yet though sorry.


OB Session Question - El Forum - 10-26-2007

[eluser]Majd Taby[/eluser]
hehe no worries, as long as there's a way to do it Smile