[resolved] Help, can't login/logout correctly thru widget.

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: [resolved] Help, can't login/logout correctly thru widget.

Re: [resolved] Help, can't login/logout correctly thru widget.

by kaspir » Thu Mar 30, 2017 4:55 am

Yes I have, it's not Wordfence, it is in fact iThemes Security feature s/s above.
axew3 wrote: Wed Mar 29, 2017 4:29 pm p.s i've also note if not wrong, due to your cookie on your site i've check a while before,
Not sure what you meant by this.

Re: [resolved] Help, can't login/logout correctly thru widget.

by axew3 » Wed Mar 29, 2017 4:29 pm

p.s i've also note if not wrong, due to your cookie on your site i've check a while before,
i see you're using plugin WordFence?
Have you try to disable this plugin to see what happen?

Re: [resolved] Help, can't login/logout correctly thru widget.

by kaspir » Wed Mar 29, 2017 2:59 pm

Yes, I use the ".thetopfew.com" for cookie domain.

I logged in, turned on my ithemes - > hide back end option.

Tried both edits, neither allow me to logout thru widget. :(

axew3 wrote: Wed Mar 29, 2017 2:46 pm hello! In this plugin we use only code that run in WP, no way to use phpBB functions. We can reproduce by the way anything on WP side.
On old versions of the plugin in fact, the logout widget link was pointing to phpBB logout not wp logout.
The trick is just to append phpbb session to an url that point to phpBB logout.
That was my objective, but not a good idea way of doing it. But exactly what I meant by in phpbb functions. So we could do WP side of course.

Re: [resolved] Help, can't login/logout correctly thru widget.

by axew3 » Wed Mar 29, 2017 2:46 pm

hello! In this plugin we use only code that run in WP, no way to use phpBB functions. We can reproduce by the way anything on WP side.
On old versions of the plugin in fact, the logout widget link was pointing to phpBB logout not wp logout.
The trick is just to append phpbb session to an url that point to phpBB logout.

I see that you have cookie .thetopfew.com, i should test the thing to understand why the loop about cookie that should be the couse due to cookie problem, but you can try this?

Open wp_w3all.php file

search for this code

Code: Select all

$useragent = (!empty($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] : 'unknown';
immediately after, add this:

Code: Select all

$w3cookie_domain = '.thetopfew.com';
OR

Code: Select all

$w3cookie_domain = 'thetopfew.com';
without point at begin.

try to logout and re-login.

Re: [resolved] Help, can't login/logout correctly thru widget.

by kaspir » Wed Mar 29, 2017 2:15 pm

Perhaps, the widget logout code, could somehow use the code from phpBB/includes/functions.php found here:

Image

There for bypassing any WP plugins by using the phpBB logout link+sid, would this be a possible resolution?

Re: [resolved] Help, can't login/logout correctly thru widget.

by kaspir » Wed Mar 29, 2017 1:24 pm

EDIT: I ACTUALLY JUST FOUND THE CULPRIT. It's the iThemes plugin.

This option CAN NOT be used:

Image

I turned it off, then logout from widget finally worked.

Is there anyway for me to match my custom WP login page url? Change the widget logout url I guess? Since I never allowed users to register thru WP.

Also, after logout, how do I redirect them elsewhere, instead of the wp-login page?

Top