Welcome Guest, Not a member yet? Register   Sign In
OB Session Question
#1

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

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

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

[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).
#5

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB