• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cookie won't set

#2
[eluser]bretticus[/eluser]
My advice would be don't set the cookie in your constructor. Cookies are not available on the same page load. calling any method in your controller class runs the set cookie code again. I don't know the ins and outs of the cookie helper functions, but I'd assume that would be your issue. If you have to absolutely want to set the cookie in your constructor, at least use your
Code:
if (get_cookie('myprefix_cookie_name') === TRUE)
code in the constructor to avoid setting your cookie on every page load that references that controller.


Messages In This Thread
cookie won't set - by El Forum - 04-11-2009, 01:58 PM
cookie won't set - by El Forum - 04-11-2009, 02:05 PM
cookie won't set - by El Forum - 04-11-2009, 02:26 PM
cookie won't set - by El Forum - 04-11-2009, 08:49 PM
cookie won't set - by El Forum - 09-05-2012, 11:22 AM
cookie won't set - by El Forum - 09-05-2012, 04:54 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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