CodeIgniter Forums
sess_read,sess_write etc methods are removed from CI3.0 session library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: sess_read,sess_write etc methods are removed from CI3.0 session library (/showthread.php?tid=63087)



sess_read,sess_write etc methods are removed from CI3.0 session library - ajaykr089 - 09-24-2015

Hey there!,

I was using Ci 2.5 previously and tried to upgrade on ci3.0 but causing some session error, then i researched little bit and found there are some methods has been removed in ci3.0 like "sess_read,sess_write" and maybe more. Can anyone please suggest me any alternate method that can be used here?



Thanks,

Ajay Kumar patel


RE: sess_read,sess_write etc methods are removed from CI3.0 session library - mwhitney - 09-25-2015

http://www.codeigniter.com/user_guide/libraries/sessions.html

sess_read() and sess_write() weren't documented methods in the CI 2.x Session library (they existed, but weren't intended to be used directly), so you probably won't find any specific information about replacing calls to those methods. However, the documentation should give you plenty of choices for reading/writing session data.