0
我有TYPO3版18年7月6日TYPO3上傳進度
public function uploadProgressAction(){
session_start();
echo $_SESSION['progval'];
return false;
}
/**
* action create
*
* @param \Istar\Fefiles\Domain\Model\Video $newVideo
*/
public function createAction(\Istar\Fefiles\Domain\Model\Video $newVideo)
{
session_start();
$progress_percents = 0;
while(1 ==1){
$progress_percents = $progress_percents + 1;
$_SESSION['progval'] = $progress_percents;
session_write_close();
sleep(0.5);
}
die();
}
這是我的代碼。我發送一個AJAX請求uploadProgressAction,我總是收到1.我似乎只有一次會話設置。請幫助我)問題在哪裏?