Solved

Recognize when a account login at the same time

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

930 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now