Force logout user specific without Membership


I want force logout a user specific without Membership. Example : I have two users online, one admin and one user.
Admin want change the password for the user and make him inactive. After the update from admin, i need to force logout this user specific. How can i do this ? It is possible to have many users and i don't want make logout admin too so the logout need to be specific.

When a user is connected, a Session is created but i don't use Membership.

Thanks for help.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
What type of web site are you using?  I could imagine a scenario for an MVC web site, with a filter that checks for membership.
bruno_boccaraAuthor Commented:
A SOA website but like i say. I don't have memberships.
Bob LearnedCommented:
Ok, let's say inactive status, instead membership.

I was wondering if it was ASP.NET web forms, or MVC platform?
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

bruno_boccaraAuthor Commented:
I use ASP.NET web forms but in SOA platform.  It's like MVC if i don't make mistake.
Bob LearnedCommented:
Service-Oriented Architecture (SOA) is usually related to a web service, and not a web site.  What template was used to create the web site?
bruno_boccaraAuthor Commented:
ASP.Net web forms so.
Bob LearnedCommented:
It might be possible to store a session variable, than when cleared would indicate that the member is now inactive.  You could have a base page that checks for the active status session variable, and handle appropriate when status changes to inactive.
bruno_boccaraAuthor Commented:
But with session, i can't know if the variable change because he keep the same variable even if database do modification.
Bob LearnedCommented:
Before each page request, you would need to check something, so it could be a value in database record, or a session variable.  Once the condition is met that the user is no longer active, all requests would transfer to a logout page.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bruno_boccaraAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.