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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Restrict user login to single session?Restrict user login to single session?
Previous
 
Next
New Post
5/22/2007 11:55 PM
 

Does DNN have the ability to support restriction of user logins to one single active session?  I have a subscription based website and I want to limit the ability of people sharing their usernames and passwords with friends.  I realize this isn't a foolproof solution, but if I could restrict a DNN user to only having one active login session I would be happier.  Any ideas on how to implement this with either a core change, a module or some other solution?

 
New Post
5/23/2007 10:50 AM
 

this is not something that is supported, however, you could make modifications to complete it but it would be a change to the core.

I am not 100% sure how you can even go about doing it either.


-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
6/6/2007 10:50 AM
 

Create custom login module base on signin.ascx (located at folder admin/security).

Modify the cmdLogin click event handler. Basicaly you just need to check wether the user already exist in the cache or not (When login usually user info will be stored in the cache and when logout the cache will be cleared automaticaly ).

 

Dim cacheKey As String = String.Format("UserInfo|{0}|{1}", portalId, txtUsername.Text)

Dim objObject As UserInfo = DirectCast(DataCache.GetCache(cacheKey), UserInfo)

 
New Post
6/6/2007 11:27 AM
 

Fun-e,

Thanks for your reply - it makes sense what you are saying but I am not the greatest programmer and haven't worked in the DNN code base for years.  Could you (or someone else) possibly expand on your code sample provided to make a more working example?

 
New Post
6/6/2007 12:11 PM
 

Can the functionality of the Users Online module be expanded to do this?  I have also wondered about this type of solution.

Carlos

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Restrict user login to single session?Restrict user login to single session?


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