CodeIgniter Forums
Lost session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Lost session (/showthread.php?tid=70509)

Pages: 1 2 3 4


RE: Lost session - InsiteFX - 04-24-2018

Did you use your browsers development tools F12 to see what is being returned on an Ajax call?


RE: Lost session - scalla - 04-24-2018

i did as u said, session entirely only works when i downgrade to php 5.6. once i return to php 7.0 the session sets and gets destroyed once it redirect.


RE: Lost session - InsiteFX - 04-24-2018

PHP 7.2.4 is the newest version that's out now, that's what I' am running.


RE: Lost session - scalla - 04-24-2018

it's a codeigniter issue, I did a temp fix on it. it affects when you running ur app via subdomain


RE: Lost session - Narf - 04-24-2018

(04-24-2018, 09:51 AM)scalla Wrote: it's a codeigniter issue, I did a temp fix on it. it affects when you running ur app via subdomain

So, after 2 pages of unclarity, it's just declared to be "a codeigniter issue" without explaining how or why that is?


RE: Lost session - Mayk - 04-24-2018

(04-24-2018, 09:51 AM)scalla Wrote: it's a codeigniter issue, I did a temp fix on it. it affects when you running ur app via subdomain
I have the very similar issue. I need to fix it as soon as possible. May I ask what was your fix?


RE: Lost session - natanfelles - 04-24-2018

(04-24-2018, 04:00 AM)scalla Wrote: i did as u said, session entirely only works when i downgrade to php 5.6. once i return to php 7.0 the session sets and gets destroyed once it redirect.

Note: CodeIgniter 4 requires PHP version 7.1 or higher.

https://github.com/bcit-ci/CodeIgniter4#server-requirements


RE: Lost session - scalla - 04-25-2018

(04-24-2018, 12:24 PM)Mayk Wrote:
(04-24-2018, 09:51 AM)scalla Wrote: it's a codeigniter issue, I did a temp fix on it. it affects when you running ur app via subdomain
I have the very similar issue. I need to fix it as soon as possible. May I ask what was your fix?

a better fix would be to stick to @natanfelles advice of 7.1 as required by codeigniter


RE: Lost session - Mayk - 04-25-2018

(04-25-2018, 07:52 AM)scalla Wrote:
(04-24-2018, 12:24 PM)Mayk Wrote:
(04-24-2018, 09:51 AM)scalla Wrote: it's a codeigniter issue, I did a temp fix on it. it affects when you running ur app via subdomain
I have the very similar issue. I need to fix it as soon as possible. May I ask what was your fix?

a better fix would be to stick to @natanfelles advice of 7.1 as required by codeigniter

I am us Codeigniter 3.1.8 with exactly the same issue on php 7.1.7
I am pretty sure, that the reason for this behavior is the same in Codeigniter 4 as well as in previous version


RE: Lost session - InsiteFX - 04-26-2018

PHP 7.2.4 is out now.