Update URL.
Better test for PHP session.