首页 >> 文摘 >> PHP

用php人工使网页过期

采集日期:2008-4-26作者:lyd518(注:本数据由系统自动采集,内容与BHCODE无关)
MANUALLY EXPIRE THE SESSION人工地使SESSION过期The last thing to do is manually "expire" the session, or at least a portion of it. In my case, I wanted the session to stay alive, so I could not use session_unset() or session_destroy(). However, I didn‘t want the user to go back to the previous pages and change things. Remember that $_SESSION["alive"] variable? After the final submit, all we have to do is get rid of it. There are two ways to do this:
本周推荐
MORE
热点关注
MORE