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

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.
Reply
#2

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

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB