A must-read story if your PHP session keeps losing weirdly
I realize that there are numerous scattered posts on the PHP SESSION LOST issu, but I’d like to add my story since it took me almost two days to figour out that php session is lost but it’s not PHP’s fault.
In the very beginning, I thought the reason why my php session is lost is because of my incorrect php code. On lots of forums and blogs, people say that session_start() should be put in the very first line of each page, session_write_close() should come before the header redirect and also make sure that session_save_path is set in php.ini file. Without lucks, none of these tips could help me solve my problem. Read the rest of this entry »