0

Allow only one user session at a time

asked 2013-01-18 07:26:50 +0800

ankur gravatar image ankur
6

How can I allow only one user session at a time ie the moment user logs in from a different browser or machine his earlier session should get invalidated.

Tried setting <max-desktops-per-session>1</max-desktops-per-session> but this doesnt seem to give desired effect. Any help will be appreciated.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-01-19 09:09:13 +0800

ankur gravatar image ankur
6

Thanks! I thought that frameworks like ZKoss and Spring would be providing this feature as a configuration and easy to use feature? If not then what you have suggested seems to be the only route.

regards,

link publish delete flag offensive edit
0

answered 2013-01-19 00:49:52 +0800

jj gravatar image jj
638 3

1. store session reference in WebApp as a map of <User, Session>
2. Create a ServletFilter (Or ZK equivalent), that will check when user logs in
3. If User session already exists, invalidate it, and replace it with the new session

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2013-01-18 07:26:50 +0800

Seen: 33 times

Last updated: Jan 19 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More