read session_expire_delay from database if table & column exists;
Previous code only ends up using the default value for session_expire_delay, not the value stored in the database, making the session always 1 week.
Previous code only ends up using the default value for session_expire_delay, not the value stored in the database, making the session always 1 week.