CodeIgniter Forums

Full Version: use Session data in config file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.