Re: headers and session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You have two calls to header?


The first should be changed to:-

session_cache_limiter('private');

http://php.net/manual/en/function.session-cache-limiter.php




Alessandro Rosa wrote:
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux