Jump to content

Sessions error


whare

Recommended Posts

Hi All me again lol

Right im getting a sessions error

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/evtecsolutions.com/dashairways/pirep2/membrs1.php:3) in /home/www/evtecsolutions.com/dashairways/pirep2/includes/memb.php on line 2

Now befor you say I carnt have the session_start in the visable file
so how do i get around that as i need to show $_SESSION['fullname']; on a html page and without the session_start i carnt show it

here are the files in use

members.php
[code]
<body>
<? include ('includes/memb.php'); ?>
<table border="1" width="100%">
  <tr>
    <td width="100%" colspan="2" bgcolor="#800000" bordercolor="#800000"><font color="#FFFFFF" face="Arial" size="2"><b>Welcome <? echo $name ?>
      </b></font></td>
  </tr>
  <tr>
    <td width="100%" colspan="2"><font face="Arial" size="2">Please use the links below to enter the
      different areas.</font></td>
  </tr>
  <tr>
    <td valign="top"><? if($userlevel == 0){
echo "<br />Inactive Pilot<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 1){
echo "<br />Active Pilot<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 2){
echo "<br />Hub Manager<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 3){
echo "<br />Fleet Manager<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 4){
echo "<br />Public Relations<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 5){
echo "<br />Vice CEO<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 6){
echo "<br />CEO [TOP DOG]<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
}
if($userlevel == 7){
echo "<br />BANNED or LONG TERM INACTIVE<br /><a href='pchange.php'>Change Password or Email</a><br /><a href='pirep.php'>File Pirep</a>";
} ?></td>
    <td valign="top">&nbsp;Here we will be placing some additional information
      when the service is installed.</td>
  </tr>
  <tr>
    <td width="50%">&nbsp;</td>
    <td width="50%">&nbsp;</td>
  </tr>
</table>

</body>

[/code]

memb.php
[code]<?
session_start();

$name = $_SESSION['fullname'];
$userlevel = $_SESSION['userlevel'];
?>[/code]

this file is used to send the session info but as you can see i still get the error

Any thoughts guys & gals?
Link to comment
Share on other sites

Guest
This topic is now 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.