Hai, I am using MySQL table to store session values. i am getting sid as 'deleted' for some sessions in live server . but i am not able to simulate it in development server . what scenario it will occur. sample data. +---------+-------+-------------+ | sid | value | expire_time | +---------+-------+-------------+ | deleted | | 1275216246 | +---------+-------+-------------+
The same issue reported in http://bugs.php.net by some one. But no answer.
http://bugs.php.net/bug.php?id=41885
I found the reason.
The problem is due to users sharing the same session id after logging off and then re-logging in without first closing their browser.
solution <?PHP session_start(); if (session_id() == 'deleted') session_regenerate_id(true); ?>