kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

SF2 interaction with "real" wordpress blog #23

Open barat opened 10 years ago

barat commented 10 years ago

Hi,

I don't know if this is only a bonus, but:

And:

So ... it's almost SSO ... from Wordpress on main domain I can login/logout from both applications, but from Symfony (Your bundle) I can only login/logout from SF2 (on WP I'm still logged off). Is there a way to make Your bundle both-sides SSO?

kayue commented 10 years ago

This sounds like a setting issue to me, as SSO is very strict about cookie settings. You might want to open your browser's debug console and compare the cookie WordPress created and the cookie Symfony created.

Please also note that signing in via Symfony won't grant you access to WordPress admin as the admin page require a different cookie.

kayue commented 10 years ago

Please double check the cookie_path and cookie_domain setting in Symfony config, they are essential and easy to go wrong. They should match with WordPress's login cookie. I recommend you to use developer console to inspect the cookie WordPress creates.

ahmed-hamdy90 commented 10 years ago

@barat did you find any solution for your issue ??