java - Want to calculate number of login members in System using Spring SessionAttribute? -
i working spring.
whenever user logs in following
model.addattribute("user",user);
where model object of
modelmap model;
and adding user in session
@sessionattribute({"user"});
now want calculate how many members logged in ? possible in continues way?
you approach wouldn't work (at least lot of code), because dealing session objects, not accessible outside respective session.
you have have external tracking object keep track of session authentications , sessions destroyed. can see , example here.
Comments
Post a Comment