Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Login question...

Thread view: 
gbattine - 15 Sep 2006 08:48 GMT
Hi guys,
i've a question for you.
I'm developing a jsf application and i've a question about login.
I want securing my applicatio,tha is if a user enters with one username
and password,during its navigation,another user can't enter with same
data.
My first solution has been setting one loggedIn property in my user
table to 1 when user enters application.
If another user try to enter with same data,loggedIn=1 stops it.
When one user logout,loggedIn became=0.
It works fine until user enter and leave out correctly.
How can i do if user close browser without logout?
Can you help me improving my solution or giving me another one?
Thanks very much
Moiristo - 15 Sep 2006 22:07 GMT
> Hi guys,
> i've a question for you.
[quoted text clipped - 10 lines]
> Can you help me improving my solution or giving me another one?
> Thanks very much

I would suggest that you use a session listener to reset the flag when a
session is destroyed. You can declare one in the web.xml like this:

<listener>
   <listener-class>myproject.util.SessionListener</listener-class>
</listener>

This is only an idea, I have never used it and therefore I can't give
you any sample code. However, there should be enough information
available on the web.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.