How to access phpbb3 through an iframe without getting logged out

52 views Asked by At

Due to new security settings implemented in most browsers (though not Firefox as of 8/21), users were getting logged out of phpbb3 when looking at messages or pressing "New Topic". The relevant phpbb feature request is low priority and hasn't seen activity for about a year.

1

There are 1 answers

0
Dustin Soodak On

I made browsers such as IE, Edge, and Chrome work for our bulletin board by going into phpbb/session.php and adding "samesite=None;" to the last command in the function set_cookie():

header('Set-Cookie: ' . $name_data . (($cookietime) ? '; samesite=None;  expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . ';' . (($httponly) ? ' HttpOnly' : ''), false);