Fix cookies section not working if using DB