What error are you getting? Did you clear the Magento cache fully? Did you clear your browser's cache and cookies? In the database in the "core_config_data" table, is the "web/cookie/cookie_domain" value blank or set to the old domain? Also do a search in this table for any value having your old URL.