Exec and Session

From: Date: Fri, 06 Jul 2001 11:23:17 +0000
Subject: Exec and Session
Groups: php.general 
Request: Send a blank email to php-general+get-56483@lists.php.net to get a copy of this message
Hi Folks, I got a problem with an asynochrnous call of another program within a php-script: If the php-script is called a second time, WITH a session (using cookies) it is blocked untill the command is finished. (This happens even if I just call a different script, that uses the session) It works absolutely fine, if I dont use sessions (eg. just reject the cooky) Any sugestions ? martin harm harm@info-mainz.de PS: Using PHP.4.0.5 on Linux Test-Script: <? session_start(); $para=intval($para); // Start of the job if ($para) { session_register('job'); $job->logfile = tempnam("/tmp/","LOG_"); $cmd="nohup perl asyn_proc.pl $para 1> $job->logfile 2>&1 &"; exec($cmd); } ?> <html><body> <form> Parameter: <input type=text name="para"> <input type=submit value="Start"> </form> </body></html>

« previous php.general (#56483) next »