CodeIgniter Forums

Full Version: Legacy code: set_flashdata()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
(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.