session('something') fails intemittently |
Hi,
Part of my project adds an array to the session, which I use on nearly every view in my project. in my view i access the array PHP Code: <?php foreach(session('items') as $arrayKey => $arrayValue) : ?> However, if i run print_ in the asscociated controller: PHP Code: print_r($this->session-get('item')); As this piece of code is critical to my project it was created some time ago and is never (NEVER) touched. Is their any reason why session('') would just stop? Now here's the thing, I thought I maybe somehow be overloaeding the session (adding content / removing content). So I destroyed the session. - This didnt fix the issue I closed/restarted the browser - This didnt fix the issue I restarted the server (hard boot) - This didnt fix the issue But after all of this, about 2 hours after I first experienced the exceptions, everything all of a sudden works again, and I promise that apart from adding a few print_r here and there, and destroying and restarting sessions I have not changed a thing to my code, CI config or ther server. Any ideas????? |
Messages In This Thread |
session('something') fails intemittently - by 68thorby68 - 08-12-2020, 12:54 PM
RE: session('something') fails intemittently - by InsiteFX - 08-13-2020, 05:20 AM
|