Why PHP Session Destroyed?
问题 I have this php code, <?php session_start(); Print_r($_SESSION); $_SESSION['value'] = 1; Print_r($_SESSION); ?> Why it Prints following, everytime when I refreshes the page.. Array ( ) Array ( [value] => 1 ) It should Print, Array ( [value] => 1 ) Array ( [value] => 1 ) I am using lighttpd as http Server on Fedora 14. 回答1: I read that running chown -R root:lighttpd /var/lib/php/ fixed the problem for others that were having the same issue. Source: http://masdeni.com/archives/6-Lighttpd-+-PHP