|
Posted by "Alessandro Rosa" on 06/06/05 19:00
> Does config.inc.php have any whitespace following the closing ?> tag, or
> does it output any HTML? That could be your culprit.
>
> What happens if you do your $_SESSION setting *before* the require, but
> directly after the initial header() call?
He knew that header may give problems with whitespaces, but this was not the
case.
With regard to your secondo question, it works !
that is, the code now looks like:
<?php
session_start();
////////////////////////////////////////////////////////////
$_SESSION['session_psw'] = $_POST['txtPassword'];
$_SESSION['session_user'] = $_POST['txtIdUtente'];
////////////////////////////////////////////////////////////
header( "Cache-control: private" );
require_once("config.inc.php");
$PHPcmd = $GLOBALS['gestionale_path_name']."test/2.php" ;
header( "Location: ".$PHPcmd );
?>
But could someone explain me why ?
Navigation:
[Reply to this message]
|