You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In stepping through breakpoints, it seems that there is an issue with session userdata not persisting. When you successfully login at the point of redirecting to the home controller, the _SESSION variable person_id is set, but when the home controller's getIndex starts processing the code in it, the person_id is unset. I updated the sessions table to reflect what CI4 says it needs to look at because I thought that was the problem. What's funny to me is that it's inconsistent. Half the time I get an undefined variable error, indicating the session data problem. and the other half the time it keeps the session variable and I go on to the next bug, which for now is in the \app\Models\Employee::has_module_grant() function which does not like a NULL being passed to the Query Builder like() function. This might be a difference between CI3 and CI4.
Activity
objecttothis commentedon Feb 8, 2023
Fixed.