Home Asp.Net MVC and Redis - Single Session per userId
Reply: 0

Asp.Net MVC and Redis - Single Session per userId

Leonardo Published in 2017-09-13 20:47:29Z

I'm looking for a way to allow only 1 session per user. Differently from the other cases, I do not want to prevent a user from logging while his session is still active. The behavior i'm looking for is "substitution", e.g.:

A user log's into a pcA and right away logs into pcB (or a another/anonymous browser for that matter). As soon as he logs onto pcB, whatever action performed on pcA is supposed to be treated as "session expired"

How can i achieve this behavior?
ps: I'm using Asp.Net MVC 5 and redis cache for session state store.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298091 second(s) , Gzip On .

© 2016 Powered by cudou.com design MATCHINFO