phpSensei Posted October 5, 2007 Share Posted October 5, 2007 Hi, I have a phpbb forum and I would like to get the session when the user logs in. I have this part: $username = $userdata['username']; // Define username variable define('IN_PHPBB', true); $site_root_path = ''; $phpbb_root_path2 = '../../fpboard/'; $phpbb_root_path = $site_root_path . $phpbb_root_path2; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.php'); $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); but I dont know how to get the session from that code. Its for my login page at the main page of my site, and if the session is set, then the log in box isnt there..... help! Link to comment https://forums.phpfreaks.com/topic/71963-how-to-get-the-session/ Share on other sites More sharing options...
MmmVomit Posted October 5, 2007 Share Posted October 5, 2007 What do you mean by "get the session"? Link to comment https://forums.phpfreaks.com/topic/71963-how-to-get-the-session/#findComment-362456 Share on other sites More sharing options...
phpSensei Posted October 5, 2007 Author Share Posted October 5, 2007 well what else can I mean lol. When a user logs in, the session is stored to the phpbb tables, how would i go about to know if the user is logged in from the phpbb forum or not. Link to comment https://forums.phpfreaks.com/topic/71963-how-to-get-the-session/#findComment-362459 Share on other sites More sharing options...
MmmVomit Posted October 5, 2007 Share Posted October 5, 2007 Find the table that the session data is stored in and query it. Link to comment https://forums.phpfreaks.com/topic/71963-how-to-get-the-session/#findComment-362463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.