Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:30:01+00:00 2026-06-05T04:30:01+00:00

I am working on a feature where my application will not allow multiple active

  • 0

I am working on a feature where my application will not allow multiple active login from same user. When a user logs in from a new machine/browser, the previous login is invalidated and user is redirected to login page on the old machine/browser.

I am able to achieve this by:
1. storing a unique sessionid for logged in user in the HttpApplicationState object
2. Whenever user logs in this session id is updated in the object so there is always the most recent session id.
3. This session id is also stored on client side in a cookie
4. For every request the client makes I compare this cookie value with the Application value and if different I log the user out.

5. To compare this session id in every request I have create a HttpModule object for event OnAuthenticated.

My question is, can I somehow abandon the Session for which I am logging user out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:30:02+00:00Added an answer on June 5, 2026 at 4:30 am

    You could implement IRequireSessionState in a temp HttpHandler, which would give you the current session. Here’s a SO question/answer that provides the complete source.

    Can I access session state from an HTTPModule?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a product feature that will allow the user to export data
I am working on wireframe for new feature in our application. One of the
I'm writing a GUI application that will have a user log in feature. Each
I'm working on a new OpenGL application, and am aware that display lists will
I'm working on a search feature for my application, I want to search all
i am working on signup feature. In this feature when the user create account
In Git I can do this: 1. Start working on new feature: $ git
If I am working in multiple branches on a single feature, I use git
I am working on an application and one feature that would make it really
I have a asp.net application which is working from last 2-3 years, it has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.