何时应清除Session User 及相关Session对象?

暂时只能想到两个地方:

1. Logout时应该清除这些对象

2. Login时应先清除当前Session已有的这些对象,因为用户会在退出之前用另一个角色登录

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.