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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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