New Joe Well-known member Apr 28, 2015 #1 Say I go to my site: mysite .com (no www) Then when I go to the above url I am not logged in as a member But say I go to my site: www. mysite .com (with www) Then I am logged in as a member How can I make it so that the non www url works the same as the www url Thanks
Say I go to my site: mysite .com (no www) Then when I go to the above url I am not logged in as a member But say I go to my site: www. mysite .com (with www) Then I am logged in as a member How can I make it so that the non www url works the same as the www url Thanks
Mike Edge Well-known member Apr 28, 2015 #2 Yes, set a global cookie for your domain in your config.php file using *.domain.com Upvote 0 Downvote
New Joe Well-known member Apr 28, 2015 #3 xenBoost Mike said: Yes, set a global cookie for your domain in your config.php file using *.domain.com Click to expand... So just add *.domain.com in my config.php file then? Upvote 0 Downvote
xenBoost Mike said: Yes, set a global cookie for your domain in your config.php file using *.domain.com Click to expand... So just add *.domain.com in my config.php file then?
Mike Edge Well-known member Apr 28, 2015 #4 New Joe said: So just add *.domain.com in my config.php file then? Click to expand... No.. like this PHP: $config['cookie'] = array( 'prefix' => 'xf_', 'path' => '/', 'domain' => '.yourdomain.com' ); Be sure to put the dot first, that will make it global. Upvote 0 Downvote
New Joe said: So just add *.domain.com in my config.php file then? Click to expand... No.. like this PHP: $config['cookie'] = array( 'prefix' => 'xf_', 'path' => '/', 'domain' => '.yourdomain.com' ); Be sure to put the dot first, that will make it global.
P Paul B XenForo moderator Staff member Apr 28, 2015 #5 You need to force your site to one or the other domain. The FAQ in my signature explains how to do that. Upvote 0 Downvote
You need to force your site to one or the other domain. The FAQ in my signature explains how to do that.