• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Legacy code: set_flashdata()

#1
The CodeIgniter User Guide for v.3.0.6 states that set_flashdata() is a legacy method kept only for backwards compatibility.
What is the suggested method when it is used with two parameters; i.e. set_flashdata($key, $value)?

Thanks
Reply

#2
A number of the Session library methods are flagged as "legacy", and the suggestion is to access $_SESSION directly.
That strikes me as odd, given the intent of flashdata, for instance, which does not have an equivalent in native PHP sessions.
I am not aware of plans to remove these methods.
Reply

#3
(06-20-2016, 03:36 PM)ciadmin Wrote: A number of the Session library methods are flagged as "legacy", and the suggestion is to access $_SESSION directly.
That strikes me as odd, given the intent of flashdata, for instance, which does not have an equivalent in native PHP sessions.
I am not aware of plans to remove these methods.

OK.  I guess I will just continue to use set_flashdata().
Thanks.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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