Home > Back-end >  Questions about shiro's session
Questions about shiro's session

Time:01-22

After using shiro, recently discovered there is a problem with the login, using the sessionDAO. GetActiveSessions () found that the session will somehow one or a few more not certified,
Then search to open out shiro online tutorials, found that the problem is, now I just use judgment s.g etAttribute (DefaultSubjectContext. Whether PRINCIPALS_SESSION_KEY null to statistics the number of online and session list,

Want to ask, where I could configuration is wrong, or that this kind of situation?

I configuration web. XML reduce shiro filter to remove static resources and so on reading session, just reduce, did not change, this kind of bugs,

Of new, under the guidance of the great god, please, what about mistakes,

Part of the configuration screenshot

CodePudding user response:

You hit a breakpoint see your request SESSIONID is a coming inside

CodePudding user response:

The solution? To ask why the session after the destruction of getActiveSessions (). The size () to get the number of the session - 1

CodePudding user response:

Brother how to solve? I use sessionDAO getActiveSessions () find the session to express will also be a few more
  • Related