Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we invalidate the session of second user ?

 
shyam ji gautam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all
First of all i want to tell the scenario actually i am making a application in which there is one user let us suppose User A is admin he will handle the admin part.

so let us suppose if any user B log in then for that user B in databse we set a flag which value is : N (AFTER LOGIN )
when user B logout this flag will goes to ;Y


so if user B is continue surfing the website at t=0 then that time if admin (user A ) Set the flag to Y for userb so is it possible for USER B goes on to the login page .

means can one sesssion interrupt (logout ) another user of different session id ?


thanks

 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4501
268
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Didn't you perhaps mention a solution yourself
Use an intercept filter that checks the whether flag of the current user is 'N'. When it isn't, the user should be redirected to the login page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic