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 283585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:23:09+00:00 2026-05-12T05:23:09+00:00

I have to design a CMS where a set of credentials can only be

  • 0

I have to design a CMS where a set of credentials can only be used once. So if a user has logged in from his computer, no-one can login with his credentials from another location until that user logs out.

Now using the asp.net membership provider out the box, the IsOnline method returns a boolean that reflects the timeout window vs. the last activity date. This is not a viable option for me, because if the user just closes the browser after logging in, IsOnline will still be true. But his session will be destroyed(assuming he’s not using Remember Me) so if he tries to log in somewhere else it will say “Sorry you still logged in”.

Are there any hard and fast options for doing this..?

I was thinking of forcing the users to be “Remembered” so when he logs in a boolean “IsReallyOnline” will be set to true and vice versa when he logs out.. Although this option has it’s limitations, (people turn off cookies, not logging out and closing the browser then sum1 else comes and browser to the site and he’s logged in etc….) it seems like the most viable for now?

Any suggestions?

Thanks in advance

  • 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-05-12T05:23:10+00:00Added an answer on May 12, 2026 at 5:23 am

    You are really asking for something that is outside of the remit of the web. The HTTP protocol is by definition stateless, meaning that at any one time; a server never need know if a client still exists. The newer/older implementations of web server programming languages (e.g. php / asp.net mvc) for the most part shy away from storing any state about connected/active clients.

    Some things to ask yourself include:

    How long may a user be ‘active’ on a page without causing a postback? Javascript based pages may allow for a user to interactively be using a page for quite some time before any kind of postback happens.

    Will the users be going through a proxy or caching server? Multiple requests from ‘different’ users may come from the same machine in this case.

    Will your application be running on one machine only, or maybe a server farm? You’ll need to ensure that load balancing (for example) doesn’t punt different users onto different servers allowing multiple logins.

    How about a user legitimately using two different browsers on the same machine? Is this to be allowed?

    One might suggest your problem here stems from trying to use the wrong technology given your requirements? Maybe writing a client application which uses direct connection to your servers would be more ‘secure’? (Yes I understand this is huge hassles but if your one user / one logon requirement is absolute maybe you could explore this avenue?)

    Oh alright, a web solution

    For a http centric solution you could try a javascript timer making a request to your server every X seconds to indicate that the session is still active. As long as the browser is open and the network connection valid you should be getting these ‘pings’. The session is kept open by the cookie passed by the httprequest.

    You’ll be able to code the ‘ping’ page to store the user details into either the application object or some membership provider of your choice then interrogate this provider whenever a client attempts to log in.

    This will require a relatively short time-out on a session or some other mechanism to ensure that a crashed browser doesn’t lock your legitimate user out for too long.

    Please note: This will fail horribly if the user doesn’t have javascript turned on (Don’t assume that they will have!)

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

Sidebar

Related Questions

We have a design we need to implement where the concept is the user
I have to design a data structure that is to be used in a
I have some questions regarding data base design for simple CMS. Every Page in
Amazon Integration I have my own CMS which has a file manager. A lot
I have a design that I have to implement where the designer has a
I have to crate a simple CMS using drupal, It has 4 pages and
I'm trying to design a CMS-like system that allows a user to modify HTML
I have used this tutorial (http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page) to design a site with a footer that
not sure if many of you have used Umbraco before, the .net based CMS.
I have to design a GUI using Qt. I would like to draw multiple

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.