• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best practices/place for setting session data

#1
[eluser]Jonas G[/eluser]
Hi

I am currently setting some session data based on geoip data. In my master view template, the very first line is
Code:
$this->betscout->preflight()

preflight() checks to see whether or not sessions like "country" and "timezone" is already set, and if not, sets them.

What i'm looking for is a better place or better practice to do this. I have been trying to make a pre_controller hook for this, but since this cannot get an instance of ci it doesn't cut it for me.

What is the best practice/place to do this kinda thing?


Messages In This Thread
Best practices/place for setting session data - by El Forum - 12-16-2009, 06:48 AM
Best practices/place for setting session data - by El Forum - 12-16-2009, 07:32 AM
Best practices/place for setting session data - by El Forum - 12-16-2009, 08:23 AM
Best practices/place for setting session data - by El Forum - 12-16-2009, 10:01 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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