Solved

Recognize when a account login at the same time

Posted on 2009-07-15
1
197 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
Comment Utility
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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

6 Experts available now in Live!

Get 1:1 Help Now