I have a post form with captcha based on session for example the code know is Ujkd9 after refreshing the code become Hi8P4 . And this is the problem. If someone post the form the captcha code of the input become old, how to get the old session ?
2条回答 默认 最新
- duanpu1111 2014-09-06 17:56关注
Well you can't, but you could save the older session into another session key creating a copy of that session, by example :
$_SESSION['session_copy'] = $_SESSION['current'];
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报