Jump to content

How to get the session...


phpSensei

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.