• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

stop multipe login with same user name

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai,
I am doing a struts application I am bit new to this framework.
I have a requirement which is like this----

whenever a user is logging and without logging out he opens a new browser
with same user name and password OR in a different system he agian tries to login then the previously logged session should be deactivte.

For example just like yahoo mail.
whan a user logs in twice with same id and password more than once except the last logged session all previous sessions are deavtivated.

HOW TO DO THAT IN STRUTS PLEASE HELP ME ON THIS CASE
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Save the username in the context (application)object of the application and make your page search for that user everytime you create a Session with a Listener.

If you use Struts make your Action extend of a BaseAction and check for the username in that one.
[ April 20, 2007: Message edited by: Oscar Gonzalez ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Samuel,
Other places to put the check include in a servlet filter or by extending the Struts RequestProcessor.
 
gevarghese varghese
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oscar Gonzalez ,
thank's
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic