Update App.php

the same for cookies