Welcome Guest, Not a member yet? Register   Sign In
database sessions, multidatabase
#1

[eluser]atomp3[/eluser]
Hi

I have app on Oracle but I would like to use Mysql for users auth.

DX auth is using database sessions. My question how to configure database config

to use oracle for app and mysql for dx auth.

I have found:
$DB1 = $this->load->database('default', TRUE);
$DB2 = $this->load->database('mysql', TRUE);

but I would like to use standard $this->db otherwise I would need to change whole app to use $this->$DB1 or $this->$DB2 for dx auth.

Thanks.
#2

[eluser]TheFuzzy0ne[/eluser]
My answer is, you should have thought about that before you coded that app. Smile

It's possible, but the bottom line is that you'll either have to do some rewriting of the DX auth models, or rewrite your app. As your app should have been built with this in mind, really it should be your own code you change, not the DX Auth's source code.
#3

[eluser]atomp3[/eluser]
[quote author="TheFuzzy0ne" date="1237559343"]My answer is, you should have thought about that before you coded that app. Smile

It's possible, but the bottom line is that you'll either have to do some rewriting of the DX auth models, or rewrite your app. As your app should have been built with this in mind, really it should be your own code you change, not the DX Auth's source code.[/quote]

True Smile

any other solutions? How to modify Session lib to handle mysql database?




Theme © iAndrew 2016 - Forum software by © MyBB