aspose file tools*
The moose likes BEA/Weblogic and the fly likes prevent multiple login for users logging concurrently Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "prevent multiple login for users logging concurrently" Watch "prevent multiple login for users logging concurrently" New topic
Author

prevent multiple login for users logging concurrently

aparna dingankar
Greenhorn

Joined: Jul 21, 2009
Posts: 9
I have to implement in my ASP.NET code a way to prevent multiple log in for same user. I found some options on net
1. Using Cookies,java scripts , View state , control state , browser caching which got ruled out since they are client side options. Client has options to disable caching / javascript.
2. DB option works only in ideal scenerio where user will log out gracefully and when options of closing browser or machine crash are not considered.
3. Can there be some way using Application State if so how can it be done. Can in some way sessions details be stored on server for an application.
Any pointers / suggestions for this ?
TIA


If we can keep our preconceived notions behind,
every unsolvable problem can have a solution!
---George Bernard Dantzig
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

aparna dingankar wrote:Can in some way sessions details be stored on server for an application.

Yes, make application scoped map object, which binds each user id with the session object.
Also if you search this forum for the same problem, you will noticed its been discussed many times, search Single Sign On.


And you mentioned its .net project and posting in Java forum, ,
anyway Welcome to JavaRanch


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
aparna dingankar
Greenhorn

Joined: Jul 21, 2009
Posts: 9
Can you please explain further on appllication scoped object.
Yes I am aware this is Java ranch but got to read a nice thread on jave ranch on this topic
http://www.coderanch.com/t/68510/BEA-Weblogic/Prevent-multiple-concurrent-logins-from
Hence thought might get some pointers here which I might have missed in ASP.NET forums
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

aparna dingankar wrote:Can you please explain further on appllication scoped object.

Application Scoped Map : Map is key : value pair object which can store an unique key and application scoped is visible to whole web application to each and every pages, classes. Now you have dig up little bit the same for ASP.net
aparna dingankar wrote:Yes I am aware this is Java ranch but got to read a nice thread on jave ranch on this topic
http://www.coderanch.com/t/68510/BEA-Weblogic/Prevent-multiple-concurrent-logins-from

The link you posted, had discussed the SSO(Single sing on) process for cluster environment, it means the same web app has been load balanced by more than one server.

And its not jave ranch, its Java Ranch


HTH
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

Your question is about ASP.NET and you are posting that in a java forum that discusses the BEA/Weblogic java application server ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Deepak Bala wrote:Your question is about ASP.NET and you are posting that in a java forum that discusses the BEA/Weblogic java application server ?

FYI, the author confessed why she's here:
aparna dingankar wrote:Yes I am aware this is Java ranch but got to read a nice thread on jave ranch on this topic
http://www.coderanch.com/t/68510/BEA-Weblogic/Prev...ultiple-concurrent-logins-from
Hence thought might get some pointers here which I might have missed in ASP.NET forums

And about BEA Web Logic, as she read the post in same section thus she asked in same section.

It's nice to see the the overall web application developmant ideas are such thoroughly discussed here at JR that other technology professional found this site useful
aparna dingankar
Greenhorn

Joined: Jul 21, 2009
Posts: 9
Hi,

I tried application state and session state to solve multiple login issue but with no success.
I keep getting Session not set in HTTPContext error
Can any one please share some link or some more elaborative example as to how to implement this.
TIA
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

aparna dingankar wrote:I keep getting Session not set in HTTPContext error

Its hard to help you out there, ASk ASP.net professional, they will explain what you did wrong also explain your approach to them.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

I keep getting Session not set in HTTPContext error


Which was precisely why I was asking you why you chose this forum. This forum is targeted at helping weblogic app server + java users. We are java geeks here mostly. Some might also know about .NET but I doubt if you can get consistent help from this place for .NET questions.

For ASP.NET question you can look at other forums. A google search revealed -> http://forums.asp.net/

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: prevent multiple login for users logging concurrently
 
Similar Threads
logging users out of the system
Login Security in grails
how to disable browser caching with jsp
browswer's back button
Disabling browser back button using servlets.