Welcome Guest, Not a member yet? Register   Sign In
use Session data in config file

How can I use Session data in config file?

My config/database.php has a dynamic 'database' name value set by Session.

How can I access Session data BEFORE Codeigniter has completed its load or simply outside CodeIgniter.

Seems like Session library is calling the session_start() so I can't access Session data without CI.

You can't, and most imporantly - you shouldn't ever do that.

SEE: Hooks in the CodeIgniter Users Guide.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB