Seem to be possible because just replicated!
Good shot!
yes you have reason, and the responsible seem to be this code:
Code: Select all
$w3db_conn->query("UPDATE ". $config["table_prefix"] ."users, ". $config["table_prefix"] ."sessions
SET ". $config["table_prefix"] ."users.user_lastvisit = '".time()."', ". $config["table_prefix"] ."sessions.session_time = '".time()."', ". $config["table_prefix"] ."sessions.session_last_visit = '".time()."'
WHERE ". $config["table_prefix"] ."users.user_id = '".$phpbb_user_session[0]->user_id."'
AND ". $config["table_prefix"] ."sessions.session_user_id = '".$phpbb_user_session[0]->user_id."'
AND ". $config["table_prefix"] ."sessions.session_browser = '".$useragent."'");
because it repeated after login redirect on
Code: Select all
private static function verify_phpbb_credentials(){
file:
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
I've try a fast fix, just reverting to what was old code, so removing or commenting out all the above, and reactivate this line only:
Code: Select all
$w3db_conn->query("UPDATE ". $config["table_prefix"] ."sessions SET session_time = '".time()."' WHERE session_id = '$phpbb_sid' OR session_browser = '".$useragent ."' AND session_user_id = '".$phpbb_user_session[0]->user_id."'");
and this fixed the issue.
The code was modified long time ago, because it was requested to set as updated online the logged in user in WP side, also in phpBB, even if user not in phpBB.
So the thing need to be review and i think yes, maybe better re-switch to old more correct behavior?
Or a trick to maintain both, would be impossible?
I will return over this asap.