before calling session_start() call ini_set to set the session's cookie domain. The default will set whatever the user used to access your site so if they go to www.mydomain.com, the cookie will set that way.
ini_set(session.cookie_domain,'mydomain.com');
session_start();
Now any variation of your domain will be able to access that cookie.
Another way to do it is using this command before session_start()
session_set_cookie_params(86400*10,'/','mydomain.com');