PHP session sometimes is lost when using session_regenerate_id

拥有回忆 提交于 2019-12-24 15:39:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!