Problem using the OB session Library

#1
[eluser]edhrx[/eluser]
Hi,
I have been using the above a while with no problems. Then... I started playing around in a controller but using 2 different connections in the fashion

$this->dbDrupal = $this->load->database('drupal', TRUE);

I then started having problems with ci_sessions table and from the sql generated in the errors the session manager was pointing at the wrong connection. I have gone as far as completly deleting out the database config active group for the connection I was testing ... and the ob sessions is still trying to go to a connection that should no longer exist.


An Error Was Encountered

You have specified an invalid database connection group.

Is it possible that the connection details are cached somehow. I have restarted my browser sessions but dos'nt make any difference.




Best wishes Ed..

#2
[eluser]spheroid[/eluser]
Modify this line in your application/config/config.php file:

Code:
$config['sess_database'] = 'default';

It needs to match the same setting in application/config/database.php. For instance, I had:

Code:
$active_group = "production";

So I would need to change the config.php to:

Code:
$config['sess_database'] = 'production';

#3
[eluser]gene_x[/eluser]
I had the same error here and this SOLVED it.
thanks a lot!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.