fix session using the configuration stored in php