Fix PHPSESSID fatal error and extend session lifetime to one week