Re: [PHP] headers and session

2005-06-07 Thread Angelo Zanetti
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 sessio

[PHP] headers and session (question)

2005-06-06 Thread Alessandro Rosa
Here's below the solution (the encryption will be shortly performed into login.php). 1 But a QUESTION now : if line 5 is replaced by these two lines, say here 5a and 5b: 5a require_once("config.inc.php"); 5b $PHPcmd = $GLOBALS['gestionale_path_name']."phpcode/login/login.php" ; this does not

[PHP] headers and session (2)

2005-06-06 Thread Alessandro Rosa
I want to thank you all for previous helpings. Really the first code was easy to be solved, but this is how it shall work out. This is a program running locally and the trouble is that session vars are stored in local files. I must avoid to store a plain text password therein, thus I need to crypt

[PHP] headers and session

2005-06-06 Thread Alessandro Rosa
> 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 white

[PHP] headers and session

2005-06-06 Thread Alessandro Rosa
Hi to all, I got a problem while storing session variables. 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