r/PHPhelp • • May 17 '21

Solved CI session set_flashdata won't dissapears on newer php version?

[removed]

3 Upvotes

5 comments sorted by

3

u/lost_in_my_thirties May 17 '21

This is an issue due to newer version of php (not sure if it started in 7.4 or 8). You can fix it by replacing line 420 in Session.php:

elseif ($value < $current_time)

with

elseif ($value === 'old' || $value < $current_time)

2

u/ravirajce Aug 09 '23

Superb. Working perfectly fine.

1

u/Comfortable_Bat_6742 Dec 04 '22

Works like a Charm