• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.