Once I did what you proposed with phpinfo, I noticed that I was getting different values for Local and Master (0 value for session.cookie_lifetime and 1440 value for session.gc_maxlifetime).
This was a big surprise since I had edited all php.ini settings inside the public folder and subfolders using Cpanel, as well as, manually. There was nothing else to see from Cpanel for any php.ini location.
So I ran php -i | grep php.ini in command prompt and I got the correct location of the master php.ini that had the values that needed changing.
So I changed respective settings in /opt/cpanel/ea-php73/root/etc/php.ini
(MAKE SURE TO RESTART APACHE FOLLOWING THIS) and until now (3 hours later) Leantime session has not expired which means it works.
Literature states that Local Values are in priority compared to the Master values so I shouldn’t be facing such issues, but probably this goes only if Local Values are smaller than Master Values. Also php.ini ownership in /opt/cpanel/ea-php73/root/etc/ was root/root, while for the Local files it was again an admin but not root (I do not know if this would matter anyway, i do not think so).
I believe the quest is over (fingers crossed).
I can’t thank you enough for your time and effort, we will be in touch I hope for future issues, if any.
Thanks and Best Regards