Welcome Guest, Not a member yet? Register   Sign In
Sess_use_database after session initialization
#1

[eluser]Artemis Mendrinos[/eluser]
Hello,

I use in autoload the session lib but the db credentials are dynamically defined by the webapp it self.

So, later on in my custom controller I use the custom generated DSN in order to enable database.

Then, I need to have sess_use_database true. I achieve this by using the following command:

Code:
$this->config->set_item('sess_use_database', TRUE);

but it seems I need to re-initialize the session class? How is the best way to achieve that?
#2

[eluser]Artemis Mendrinos[/eluser]
Actually the only thing I need to clarify is how to enable sess_use_database and activate it when a session is already initialized...

Why the support of database sync of the session is taking place only when the session is firstly loaded? Any way to push/force database usage for the session later on?




Theme © iAndrew 2016 - Forum software by © MyBB