5
Check mainfile.php to see whether you're using the "www".
Delete any existing cookies (with and without the "www").
To avoid the problem, you could (in theory) use mod_redirect inside an .htaccess file to redirect requests using "www" to a URL without the "www", or vice versa.