Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Preventing multiple loginsPreventing multiple logins
Previous
 
Next
New Post
12/1/2009 1:53 PM
 

We have some clients that use a web based application that does this by inserting a record into the database when a user logs in and removing the record when they log off.  These website you refer to may do something along these lines. This solution is a support nightmare because when users just close their browser instead of loggin off properly it leaves their record in the database so it looks like they are logged in.  We have tried numerous work-arounds (i.e. a stored procedure that we run periodically to try and clean-up these "orphaned" records) but it's still a poor solution.  Like Sebastian indicated, due to the nature of web-based applications there really is no good way to accomplish this (that I know of).

 
New Post
12/1/2009 2:04 PM
 

Your desired behavior is not something that is supported out of the box.

It can be possible to do with a few modifications to the system, but you will have limitations and the experience for your users might be less than optimal if the situation is not properly documented first.

I have implemented custom solutions for clients in the past to take care of it, it isn't 100% all the time, but we can get you a good solution if interested.

Feel free to e-mail me msellers@iowacomputergurus.com and we can discuss options.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/1/2009 4:39 PM
 

 "This solution is a support nightmare because when users just close their browser instead of loggin off properly it leaves their record in the database so it looks like they are logged in."

I've used something similar but just used an expiry time ... even if they don't log off the record in the database expires after say 30 mins, so you don't actually have to delete the record.

This was used in conjunction with a cookie...we would write a unique identifier to a cookie and then check this against the record in the database. If the identifier in the cookie doesn't match the identifier in the database, they are trying to log on again.

Hope it helps

Mike

 

 

 
New Post
7/7/2010 12:01 PM
 
Considering the UsersOnline module...

Looking at the table in the db, it keeps a record of all users online by UserID.
I have not looked at the code as yet so...

Questions:
How does that module track the users logging off? What about simply closing the browser without logging off?

Suggestion(s):
Now, what if an amendment is made to the DNN login (core team?) to check if the UsersOnline module is installed and in use?
What about providing a flag to set in login requirements for the Admin or Host to choose to check UsersOnline? Like requiring CAPTCHA or not...

Therefore, for those who want it, if configured, when a user logs in, if in UsersOnline table, block that login, display msg...

I'm guessing that the UsersOnline table is periodically cleared of "orphaned" records if users have just closed the browser without logoff.
 
New Post
7/8/2010 3:51 PM
 
OK, I found something that might interest MANY. (sorry, sent form my mac so formatting doesn't work) 

The DataSprings Dynamic Login module allows one to run a SQL statement on each login. Here's what I got from them: 

"First step is to enable DNN’s Users Online.  Then you’ll want to use Dynamic Login to execute a SQL query to check in Users Online for simultaneous logins with the same credential.  Now here’s the tricky part. Because DNN’s Users Online cycles every 20 minutes or so, we do not recommend the SQL to limit it to only 1 because you will have many situations where the user logsout and/or closes browser and then decides to log back in.  In this case, because Users Online hasn’t cycled out yet, this legitimate user will not be allowed to log in again.  Therefore, we recommend to set the simultaneous login counter to 3 or 5."

So, that'll save a few people some headaches...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Preventing multiple loginsPreventing multiple logins


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out