Ok I think I have solved this issue @Retrospek
I wrote my own CMS and am using the integration in a custom structure so it wont apply directly to you but here is what solved it for me.
I needed to include some global variables for the session integration to work, which may or may not be needed for you. If needed feel free to use, if not then just delete that part of the following code.
Code: Select all
global $phpbb_container, $phpbb_root_path, $phpEx, $user, $auth, $cache, $db, $config, $template, $table_prefix, $phpbb_dispatcher;
$phpEx = "php";
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ROOT_PATH . '/';
include($phpbb_root_path . 'common.' . $phpEx);
Then after lots of trial and error I found that phpbb's session system does NOT like the usage of $_GET global variable. I am not sure why but it that is why we received the error.
I had a $_GET variable being called after the inclusion of the session management. I still needed the variable so I created a temporary non-global variable to call instead.
I was using the following after the inclusion of the session:
I created a new temp variable above the session inclusion script so it would be called before the session, like this:
For the rest of the code I would only call to that temp variable, $examplevar.
At this point, I could reliably use the phpbb session integrated with my CMS.