Page 1 of 1

Existing members double login

PostPosted: October 2nd, 2011, 7:27 am
by scott74
I created a login button on my main page on a multisite network when a new member signs up, they can login on my main page (so they dont have to remember a long url with the wp-ect...) and from there in the upper left they can see all there sites and visit the dashboard of each with no problem...


Any existing members when they go to visit there dashboard of there sites , it redirects them to the default wordpress login , making them login again?? Its not even the custom login that it redirects them to with the custom logo .. its just the default WP login

Any advice on why this is occuring only for existing members

Thanks

Re: Existing members double login

PostPosted: October 2nd, 2011, 3:29 pm
by Cristián Lávaque
Scott, could you post the URL to the custom login page? And what is the URL of the login page the user is redirected to when he wants to login to his dashboard?

Re: Existing members double login

PostPosted: October 2nd, 2011, 3:44 pm
by scott74
thanks Cristian ..... I think this has somehow corrected itself... i reset setting under multisite... thanks

Ps... does s2 member use my themes settings for the signup page... I am trying to streamline the look but it keeps using my homepage

http://fanpage4me.com/wp-signup.php

Re: Existing members double login

PostPosted: October 2nd, 2011, 4:07 pm
by Cristián Lávaque
What do you mean by your theme's settings?

Re: Existing members double login

PostPosted: October 2nd, 2011, 4:12 pm
by scott74
it is using my home page settings.... i dont need all that across the top

Re: Existing members double login

PostPosted: October 2nd, 2011, 4:17 pm
by Cristián Lávaque
Ah, thanks, that make it clear. I don't know, but I'll email Jason asking him.

Re: Existing members double login

PostPosted: October 3rd, 2011, 6:28 am
by scott74
existing member double login seems to be back... see screen cast here

http://screenr.com/ejRs

Re: Existing members double login

PostPosted: October 3rd, 2011, 10:52 pm
by Jason Caldwell
Thanks for reporting this important issue.
scott74 wrote:it is using my home page settings.... i dont need all that across the top
That's actually attributed to the way your theme handles this special page within WordPress. You might try contacting your theme developer and ask them if it's possible to change the template display dynamically for your /wp-signup.php file.

Re: Existing members double login

PostPosted: October 3rd, 2011, 10:57 pm
by Jason Caldwell
Regarding your video.
scott74 wrote:existing member double login seems to be back... see screen cast here
http://screenr.com/ejRs
Can you please post the COOKIE_DOMAIN and COOKIEPATH constants from your /wp-config.php file? I'd like to see what your configuration says please. There is also SITECOOKIEPATH available. Are any of these defined in your /wp-config.php file?

Re: Existing members double login

PostPosted: October 4th, 2011, 5:28 am
by scott74
Jason Caldwell wrote:Thanks for reporting this important issue.
scott74 wrote:it is using my home page settings.... i dont need all that across the top
That's actually attributed to the way your theme handles this special page within WordPress. You might try contacting your theme developer and ask them if it's possible to change the template display dynamically for your /wp-signup.php file.



I managed to fix this , thanks

Re: Existing members double login

PostPosted: October 4th, 2011, 5:31 am
by scott74
Jason Caldwell wrote:Regarding your video.
scott74 wrote:existing member double login seems to be back... see screen cast here
http://screenr.com/ejRs
Can you please post the COOKIE_DOMAIN and COOKIEPATH constants from your /wp-config.php file? I'd like to see what your configuration says please. There is also SITECOOKIEPATH available. Are any of these defined in your /wp-config.php file?


I dont see anything regarding cookie keys in the wp config file.. I have logged_in_key, Logged_in_salt and stuff like that??

Re: Existing members double login

PostPosted: October 8th, 2011, 7:35 pm
by Jason Caldwell
Gotchya. Thanks for the follow-up.
OK, well by default, WordPress expects each site in the Network to have separate login session cookies, because the COOKIEPATH constant is set to the path of the current site ( i.e. $current_site->path ) by default. The way to prevent this on a Blog using sub-directories, is to set this PHP Constant inside your /wp-config.php file. This way a User logs in on one site in the Network, and will not need to log in again on another site in the same Network, so long as sub-directories are being used and not sub-domains.
Code: Select all
define("COOKIEPATH", "/"); 

Re: Existing members double login

PostPosted: October 8th, 2011, 8:24 pm
by scott74
ok, thanks... i put define("COOKIEPATH", "/"); in the wp config file just now.. will test what happens