Php提供功能session_write_close
。我想檢查會話是否已關閉。 session_id()
仍然返回值。檢查是否阻塞寫入會話
session_start();
//
// Some code there
//
session_write_close();
//
// Some code there
//
if(/*is session write closed?*/)
echo 'Session closed';
else
echo 'Session still opened';
你想殺了會議?如果是這樣,那麼還有其他一些方法可以做到這一點。請描述你的問題...... – Aborted 2013-03-01 13:41:10
'session_write_close()'幫助我修復一個錯誤。我發現了這個功能,現在我只是好奇,我想增加我對PHP會話的知識。這就是爲什麼我創造了這個問題 - 這是想象中的問題。 – Kasyx 2013-03-01 13:47:08