Generation of temporary cookies to resolve urls
Make the code PSR-1/PSR-2 compatible