Multidomain support
-
Hello,
I’m pretty sure it should be some basic problem, as hundreds sites should use same configuration as I’m trying to. But I can’t find any discussions on issue I have.
Problem:
I’m trying to use some of multilanguage plugins, who enables a subdomain-per-language configuration. For example example.com, en.example.com, fr.example.com.
Unfortunately the Social Login generates single constant for all redirects (without subdomain): example.com/wp-content/plugins/wordpress-social-login/hybridauth/?hauth.start=Google
as result, when user logs in from en.example.com, session cookie set on en.example.com is lost. As result the hybridauth page renders an error “406. The session identifier is missing.”Checked sources, and as far as I understand (I’m not a php-developer), on startup it generates single constant for further use:
define( ‘WORDPRESS_SOCIAL_LOGIN_ABS_PATH’, plugin_dir_path( __FILE__ ) )
define( ‘WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL’, plugin_dir_url( __FILE__ ) )
define( ‘WORDPRESS_SOCIAL_LOGIN_HYBRIDAUTH_ENDPOINT_URL’, WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . ‘hybridauth/’ )As far as I understand, the problem can be fixed if Social Login plugin doesn’t use constants, but build these urls on each request, based on current domain, or modified by multilanguage plugins ‘site_url’.
Correct me if I’m wrong.
How do others use Social Login plugin in multidomain environment?
Or even how can I use it in simplest case: example.com vs http://www.example.com? Or may be I’m complicating the problem, and solution is much simpler? Anything to do with cookies policies?
The topic ‘Multidomain support’ is closed to new replies.