You are here: Re: [PHP] headers and session « PHP « IT news, forums, messages
Re: [PHP] headers and session

Posted by Angelo Zanetti on 06/07/05 17:23

Hi Alessandro

try this as well (Put these lines before and after your redirect/header
statement);

session_write_close();
header( "Location: ".$PHPcmd );
exit();

hope this helps

Angelo Zanetti
Z Logic
www.zlogic.co.za



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
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация