This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can we invalidate the session of second user ?  RSS feed

 
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
Marshal
Posts: 5511
687
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!