问题
I have strange behavior in my website, when session is started with the following option:
session_regenerate_id(true);
Sometimes when browsing, user gets kicked from members area, I get errors that session variables are undefined at that moment, for example:
[Tue Oct 29 13:37:39 2013] [error] [client 78.62.xx.xx] PHP Notice: Undefined variable: origid in /home/rolandas/public_html/domain.com/members/send_sms.php on line 115, referer: http://www.domain.com/members/actions.php
But if I do not use session ID regeneration, everything works fine all the time. What could be an issue? Is there a problem with my server?
来源:https://stackoverflow.com/questions/19656129/php-session-sometimes-is-lost-when-using-session-regenerate-id