Error "logged out because your session has expired"

Hi,

I am receiving the error message “You have been logged out because your session has expired” when I try to login.

Yesterday I posted under this thread because I thought it was a 2FA issue. It is not a 2FA issue, just the timing made me think it was. On a fresh install I can only login once per device. Once I log out, if I attempt to log back in, I will receive the error message above. This is without 2FA enabled.

I have read everything I could find and most people suggest it’s a session.save_path issue and the DIR isn’t writable. Here is my phpinfo sessions section: imgur

Fairly sure my permissions are correct?
drwxrwx--- 2 apache apache 240 Oct 14 12:30 /var/lib/php/session

In my php.ini I have tried setting the path: session.save_path = "/var/lib/php/session"

Server is not running any caching. I have cleared the suitecrm cache and my browser cache.

Disk is not full:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        461M     0  461M   0% /dev
tmpfs           479M     0  479M   0% /dev/shm
tmpfs           479M  396K  479M   1% /run
tmpfs           479M     0  479M   0% /sys/fs/cgroup
/dev/nvme0n1p1   30G  3.1G   27G  11% /
tmpfs            96M     0   96M   0% /run/user/1000

Time zone is set in php.ini

I have deleted existing session files and cache. Tried deleting both together too.

Suitecrm.log is empty.

Apache error logs only show a notice that happened at install:

PHP Notice: Undefined variable: sugar_config in /var/www/html/include/entryPoint.php on line 85,

Instance Details:
AWS Linux2
Apache
MySQL 5.7.*

Any help would be great.

Thanks

Andrew