note 17690 deleted from function.exec by vincent
| From: | vincent@php.net | Date: | Wed, 10 Sep 2003 18:59:27 +0000 |
| Subject: | note 17690 deleted from function.exec by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55997@lists.php.net to get a copy of this message | ||
Note Submitter: drillo70@yahoo.com
----
To get around the problem arising from sessions and background program execution (with system, exec
or passthru) you can do this:
.....
session_write_close();
$dummy = system("./run &", $code);
.....
NOTE: remember to set all your session registered variables before you call session_write_close()!
see session_write_close() manual page for details.