Solved

Recognize when a account login at the same time

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 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