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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.