Chris,
This somewhat depends on how the server itself is set up and whether you have an SSL certificate and which address it is tied to.
Some hosts automatically redirect non www request to the www address some don't but you are right the answer ultimately is to set up a .htaccess file redirecting to one or the other to prevent this issue.