Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 40797
829
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic