Login session doesnt seem to want to save ...

Discussion in 'PHP' started by X.Homer.X, Oct 26, 2007.

  1. #1
    Okay, so i have the phpBB3 user system integration "script" on my site, (i followed the tutorial at www.techtuts.com)

    and i can let users sign in, but they wont remain signed in. its kind of wierd, its like the session wont stay saved.

    heres my top.php file (included in every page)

    
    <?php
    session_start();
    ob_start();
    include('config.php'); //Include our config...
    if($user->data['user_id'] != ANONYMOUS) //If the user isnt a guest
    {
    $login = 'Welcome '.$user->data['username'].'!<br><br> <a href="/forum/ucp.php?i=pm&folder=inbox&sid='.$user->session_id.'">Inbox ('.
    $user->data['user_unread_privmsg'].')</a> | <a href="'.append_sid($phpbb_root_path .'ucp.php?mode=logout&sid='.$user->session_id).'">Logout</a>';
    }
    else
    {
    $login = "You are not logged in!<br><br><a href=login.php>Log in here</a>";
    }
    ?>
    <head>
    <title>AbsoluteHabbo Under Construction</title>
    <link href='/includes/styles/style.css' rel='stylesheet' type='text/css' />
    
    </head>
    
    
    <body background="includes/styles/images/3.gif">
    	
    <div id="sitecontainer" align="center">
    	
    			<div id="header"></div>			
    			<div id="middle">
    		  
    <!-- Page container -->
    				<div id="container">
    <!-- ///////////////////// -->
    <!-- Content box --><br>
    				<div id="leftcontainer">
    <!-- Navigation box -->
    				  <div id="navigation">
    		  <?php include("includes/nav.php"); ?>
    				  <div id="spacer" style="padding-top: 10px;"></div>
    				  <!-- Radio player box -->
    				  <?php include("includes/radio_box.php"); ?>
    				  <div id="spacer" style="padding-top: 10px;"></div>
    				  <!-- Main box -->
    				  <?php include("includes/main_box.php"); ?>
    				</div>
    				<div id="rightcontainer">
    				
    						<div id="content_top">
    Code (markup):
    please help? xD
     
    X.Homer.X, Oct 26, 2007 IP
  2. CuBz

    CuBz Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There doesnt seem to be a problem with that script
     
    CuBz, Oct 27, 2007 IP