简体   繁体   中英

How does HttpSession invalidate() actually work?

in documentation it says:

public void invalidate()

Invalidates this session then unbinds any objects bound to it.

Does that mean that just the references to the attribute objects are removed or the objects themselves are destroyed ?

Thanks

invalidate方法使Web应用程序容器解除绑定(而不是销毁)Web应用程序对HttpSession Object的所有引用,然后销毁(从JVM中删除)HttpSession Object。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM