aspose file tools*
The moose likes JSP and the fly likes how to prevent multiple login with same name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to prevent multiple login with same name" Watch "how to prevent multiple login with same name" New topic
Author

how to prevent multiple login with same name

ketu patel
Greenhorn

Joined: Oct 16, 2004
Posts: 7
i have created one application which is based on only sctiplet and jsp pages so now i'm trying to find out who logged in so how could i implement it help me with some example

thanking you
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Originally posted by ketu patel:
i have created one application which is based on only sctiplet and jsp pages so now i'm trying to find out who logged in so how could i implement it help me with some example

thanking you


This question was asked many times in this forum ..
Try with a HttpSessionListener, & keep track of login.
This works well for me .

Srini


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
ketu patel
Greenhorn

Joined: Oct 16, 2004
Posts: 7
that's right but is HttpSessionListener is work from jsp or i have to create a servlet for that i'm looking for the jsp based solution mean a scriptlet if u have than can u able to give me some link ? if possible
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
As I'm sure you know since you have the Servlet and JSP specs bookmarked on your 'puter over there .... the listeners are configured against a particular servlet or JSP file(s) like filters are. You set it up and it's there. It will always get called when new Sessions are bound, etc.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to prevent multiple login with same name