Solved

Recognize when a account login at the same time

Posted on 2009-07-15
1
202 Views
Last Modified: 2012-06-21
Hi,

I've an web app that use a handler for different functions e.g. for the login.
So when a user login I create a cookie for:
Call: ../login.api?User=test&pw=test
Code behind: Session["ID"]=result_from_sql

This works fine but now I have a problem:
When one user account is active and on an other place a user try to login with the some account, the working one should be informed about.
As the login is done by the handler I've no idea how to do this.
Maybe is a way to work with Global.asax to manage it but I've never used it so is just an idea...

Has somebody a solution how to do something like this?

Thanks,

Andre
0
Comment
Question by:andre72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
Rahul Goel ITIL earned 500 total points
ID: 24866801
Hey you can do it very easily. you log the session in database, what time it is logged in and from where for every login. If any same user is trying to login with same credentials whose session is active. Allow user to login but cross check with the host logged in.

And On the first user side. make a call to your applicaiton thorugh ajax and check for the consitency for the session and flash a alert message to ther user and differentiate the login time to intimate the user means whom to intimate
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question