Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2009, 03:56 PM
Member
 
Join Date: Dec 2008
Posts: 2
Rep Power: 0
SantoshBK09 is on a distinguished road
Default How to allow one user to acces resource
Hi Friends,

I am developing an web application in Servlet, My question is
if a person login to my application with user id(abc) and password(123456), if somebody tries open in same time with login with same user id(abc) and password(123456), my application should not allow him.

How can to do in servlet.

Thanks in Advance.
Santosh
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 01-06-2009, 04:11 PM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 972
Rep Power: 2
Steve11235 is on a distinguished road
Default
Where ever you store your user information, I assume a database, add an in-use flag. I suggest making the flag an expiration timestamp, since the user may not sign off when they are done, and the profile will remain locked. This will also require your servlet to check that the user sign-on is still valid on each post.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resource Adpaters for JAIN-SIP and J2EE metal4591 New To Java 0 12-29-2008 07:08 AM
tomcat resource bundle tab not appearing?? freddieMaize NetBeans 2 05-25-2008 10:15 AM
Open Resource Window JavaForums Java Blogs 0 05-15-2008 10:20 AM
how to configure a JNDI URL resource rinks Advanced Java 0 03-12-2008 05:57 PM
Velocity, cannot find resource sandor Web Frameworks 1 05-17-2007 11:58 PM


All times are GMT +2. The time now is 09:22 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org