I am sending email in background process. For background process I am using symfony 2.0. Background works successfully. but in background I can't get session value.. Below code of index.php
session_start();
$_SESSION['album_upload'] = {"a","b"};
$command = file_get_contents('background.php');
$process = new PhpProcess($command);
$process->run();
below code of background.php
session_start();
$message = $_SESSION['album_upload'][0];
mail("[email protected]","example",$message,"From: $from\n"); // Session doesn't give any value.
If I remove session and just try to send mail like mail("[email protected]","example","example","From: $from\n"); then mail will send.
How to get the session value in background.php.