Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

How to make sure the user is logged into only one browser or one device at a time

$
0
0

I have a solution that uses

  1. MVC
  2. Web API
  3. Web Forms

And I need to make sure that when the user is logged into one browser they cannot log into another browser or some other device.

I have so many pages to the point that this must be done in either in the Global or Application object when the application first starts and users begin to log in.

I am using the asp_Membership to manage all my log ins, profile info, membership everything to do with a users membership is in my SQL database.

I even thought it may make sense to check where the stored procedure where the user logs in and log them out then re log them back in some fashion.

Can someone give me some advise on the cleanest and easiest way to do this?

There are example on the net but since I am using Web Api and Mvc where the session object is not always that easy to grab plus i do not way to do this at the page level.

Maybe a few lines of code working with the application object should do it?

Thank you,


Viewing all articles
Browse latest Browse all 4850


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>