Solved

Recognize when a account login at the same time

Posted on 2009-07-15
1
199 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
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

786 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