Site users logged out if the URL switches from http://www.mysite and http://mysite.com

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 20, 2016   (RSS)

By Damon - May 19, 2016

Hi,

Is this happening with CMS Builder, Website Membership plugin or somewhere else?

Can you give me some steps to recreate?
Send in to support@interactivetools.com if you don't want to post URLs in the forum.

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Damon - May 20, 2016

Update for anyone else with this issue:

The Membership sets the full URL when the user logs in. So if a user logs in without www, then goes to another page, clicks a link with www, they are no logged into the site as this is a different URL.

The solution is to make the site automatically redirect users that connect without www to the full url with www: http://www.site.com

This can often be done in the hosting control panel or with htaccess file code. Check with the host for the exact code to use.

A quick search brought up this example but I haven't tried it out:
http://stackoverflow.com/questions/12050590/redirect-non-www-to-www-in-htaccess

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/