Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

prevent multiple login for users logging concurrently

 
aparna dingankar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
aparna dingankar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is about ASP.NET and you are posting that in a java forum that discusses the BEA/Weblogic java application server ?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic