headers and session
| From: | Alessandro Rosa | Date: | Mon, 06 Jun 2005 14:59:21 +0000 |
| Subject: | headers and session | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-216488@lists.php.net to get a copy of this message | ||
Hi to all,
I got a problem while storing session variables.
<?php
session_start();
header( "Cache-control: private" );
require_once("config.inc.php");
////////////////////////////////////////////////////////////
$_SESSION['session_psw'] = $_POST['txtPassword'];
$_SESSION['session_user'] = $_POST['txtIdUtente'];
////////////////////////////////////////////////////////////
$PHPcmd = $GLOBALS['gestionale_path_name']."test/2.php" ;
header( "Location: ".$PHPcmd );
?>
After the call to header(...), the values of session variables are lost.
I think I should fix this up with some settings in my php.ini
Could you help me, please?
Alessandro Rosa