add cookie management to example.php

This is for pull request https://github.com/facebook/php-webdriver/pull/102