Re: [PHP] A problem about sessions

2012-06-08 Thread Tazio Ceri
Stuart Dallas ha scritto: >On 8 Jun 2012, at 00:39, Tazio Ceri wrote: > >> I have a PHP script that takes very long time to execute. I manage it >using the following structure: >> >> ob_start(); >> >> // some code >> session_start(); >> // some code >> >> header("Content-length: ".ob_get_lengt

Re: [PHP] A problem about sessions

2012-06-07 Thread As'ad Djamalilleil
i can't undersans much of your question,, but i think you supposed to write the statement to set the variable's value after the "session_start()" called, like this ... session_start(); . some codes $_SESSION['some_var']; <--- don't put it before the session_start() On Thu, Jun 7, 2012 at 5

Re: [PHP] A problem about sessions

2012-06-07 Thread Stuart Dallas
On 8 Jun 2012, at 00:39, Tazio Ceri wrote: > I have a PHP script that takes very long time to execute. I manage it using > the following structure: > > ob_start(); > > // some code > session_start(); > // some code > > header("Content-length: ".ob_get_length()); > ob_end_flush(); > > // some

[PHP] A problem about sessions

2012-06-07 Thread Tazio Ceri
Hi all, I have a PHP script that takes very long time to execute. I manage it using the following structure: ob_start(); // some code session_start(); // some code header("Content-length: ".ob_get_length()); ob_end_flush(); // some other, very long, code! The problem I am facing is that, aft