User session issue - users appear logged out when they shouldn't

We have a website at https://www.example.com. We have implemented the ability for users to be able to create accounts and login via the front-end. An issue arises when users access the website at https://example.com then via https://www.example.com or vice versa when logged in.

If they’re logged in after accessing https://example.com, they appear logged out and unable to view user-specific pages via https://www.example.com. Is there a way to rectify this?

You could adjust the .htaccess file, so that all the request either contain the “www” or don’t:

We ended up doing this, thanks!

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.