Session Variables

Hi, I’ve a doubt, I’ve a login page with this session variables on it:


<?php require_once('../Connections/Mediterranea.php'); ?>
<?php
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$FF_LoginAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING']) && $HTTP_SERVER_VARS['QUERY_STRING']!="") $FF_LoginAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING'];
if (isset($HTTP_POST_VARS['Login'])) {
  $FF_valUsername=$HTTP_POST_VARS['Login'];
  $FF_valPassword=$HTTP_POST_VARS['Password'];
  $FF_fldUserAuthorization="";
  $FF_redirectLoginSuccess="admin/inicio.php";
  $FF_redirectLoginFailed="error.php";
  $FF_rsUser_Source="SELECT Login, Password, Perfil";
  if ($FF_fldUserAuthorization != "") $FF_rsUser_Source .= "," . $FF_fldUserAuthorization;
  $FF_rsUser_Source .= " FROM usuarios WHERE Login='" . $FF_valUsername . "' AND Password='" . $FF_valPassword . "'";
  mysql_select_db($database_Mediterranea, $Mediterranea);
  $FF_rsUser=mysql_query($FF_rsUser_Source, $Mediterranea) or die(mysql_error());
  $row_FF_rsUser = mysql_fetch_assoc($FF_rsUser);
  if(mysql_num_rows($FF_rsUser) > 0) {
	// username and password match - this is a valid user
	$sessLogin=$Login;	
	session_register("sessLogin");
	$MM_Username=$FF_valUsername;
	session_register("MM_Username");
	if ($FF_fldUserAuthorization != "") {
	  $MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization];
	} else {
	  $MM_UserAuthorization="";
	}
	session_register("MM_UserAuthorization");
	//echo $row_FF_rsUser["Perfil"];
	if (isset($accessdenied) && false) {
	  $FF_redirectLoginSuccess = $accessdenied;
	}
	else if ($row_FF_rsUser["Perfil"]=="Corredor")
	{
				
		$FF_redirectLoginSuccess="corredores/iniciocorredor.php";
	}
	mysql_free_result($FF_rsUser);
	session_register("FF_login_failed");
	$FF_login_failed = false;

	header ("Location: $FF_redirectLoginSuccess");
	exit;
  }
  mysql_free_result($FF_rsUser);
  session_register("FF_login_failed");
  $FF_login_failed = true;
  header ("Location: $FF_redirectLoginFailed");
  exit;
}
?>
<HTML>
<HEAD>
<TITLE>Entrada</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
input {
	font-size: 11px;
	font-family: Arial, Helvetica, sans-serif;
	color: #333333;
	background-color: f4f4f4;
	border: thin solid dfdfdf;
}
-->
</style></HEAD>
<BODY BGCOLOR=#FFFFFF>
<!-- ImageReady Slices (Entrada.psd) -->
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td align="center" valign="middle"><div align="center">
	  <TABLE WIDTH=890 BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<TR>
		  <TD COLSPAN=4> <IMG SRC="images/index_01.gif" WIDTH=890 HEIGHT=88 ALT=""></TD>
		</TR>
		<TR>
		  <TD ROWSPAN=2> <IMG SRC="images/index_02.gif" WIDTH=22 HEIGHT=449 ALT=""></TD>
		  <TD height="228" COLSPAN=2> <div align="center">
		    <form action="<?php echo $FF_LoginAction?>" method="POST" name="acceso" id="acceso">
			  <table width="282" border="0" cellspacing="2" cellpadding="2">
				<tr>
				  <td width="58"><div align="right" class="style1">Login</div></td>
				  <td width="324"><input name="Login" type="text" id="Login" size="35"></td>
				</tr>
				<tr>
				  <td><div align="right" class="style1">Password</div></td>
				  <td><input name="Password" type="password" id="Password" size="35"></td>
				</tr>
				<tr>
				  <td colspan="2">
					  <div align="right">
					    <input type="submit" name="Submit" value="Accesar">
				    </div></td></tr>
			  </table>
			</form>
		  </div></TD>
		  <TD ROWSPAN=2> <IMG SRC="images/index_04.jpg" WIDTH=19 HEIGHT=449 ALT=""></TD>
		</TR>
		<TR>
		  <TD> <IMG SRC="images/index_05.jpg" WIDTH=423 HEIGHT=221 ALT=""></TD>
		  <TD> <IMG SRC="images/index_06.jpg" WIDTH=426 HEIGHT=221 ALT=""></TD>
		</TR>
		<TR>
		  <TD COLSPAN=2> <IMG SRC="images/index_07.gif" WIDTH=445 HEIGHT=23 ALT=""></TD>
		  <TD COLSPAN=2> <IMG SRC="images/index_08.jpg" WIDTH=445 HEIGHT=23 ALT=""></TD>
		</TR>
	  </TABLE>
	</div></td>
  </tr>
</table>
</BODY>
</HTML> 

if my profile is Admin there’s no problem, everything it’s ok, but if my profile is Corredor then nothing it’s working, I mean, if I’m a Corredor I can change my profile, check my customers, etc, just mine, not everybody else, locally, it’s working fine, but when I upload the files in a server it’s not working, now I change some line in my php.ini ( locally ):

; Initialize session on request startup.
session.auto_start = 1

change “0” for “1”, is this the problem or I’m just doing something wrong?

Thanks in advance