I use the Conduit toolbar service, if you don't know what that is then google will provide you the link (I'm not fully sure of advertising rules here).
Anyway, the toolbars support XML remote hosted menus and also support dynamically created php xml files which work just fine. It can pull information from the database and alter the xml just fine but when it comes to user data it fails badly.
I know you are suppose to use the session_begin function in order to get access to the userdata but when using the function inside the php-to-xml file it kills the session cookie anytime it is pulled into the toolbar. If you view the fire directly from the browser it works fine but once you refresh the toolbar to view it there the session is immediately deleted resulting in logging out anyone viewing the toolbar.
So I tried a few work arounds like trying to pulling data directly from the users table with and sql query ( yea I know, long shot)
here is the code I used for the direct pull
Code: Select all
$result = $db->sql_query("SELECT user_id, username FROM phpbb_users LIMIT 1 " ); $fetch = $db->sql_fetchrow($result); $username = $fetch['username']; $user_id = $fetch['user_id'];
So is there any way at all to get user data without the session_begin function?