美文网首页
HttpSession

HttpSession

作者: c332030 | 来源:发表于2019-03-11 22:03 被阅读0次

    invalidate()

    会清空所有已定义的session 而不是清空全部session的值
    也就是说 定义了一个名为 user 的session 调用invalidate()方法后使用Session.getValue(“user”)。会发生Session.getValue(“user”) 这个对象为空的异常,而不是Session.getValue(“user”)这个对象的值为空。因为该方法清空了内存中所有的session对象。

    原文:https://blog.csdn.net/u013998070/article/details/41900065

    相关文章

      网友评论

          本文标题:HttpSession

          本文链接:https://www.haomeiwen.com/subject/chiipqtx.html