在asp.net中实现许可 [英] Implementation of Licencing in asp.net

查看:98
本文介绍了在asp.net中实现许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

有谁能帮助我在asp.net Web应用程序中实现许可.我想给我的客户40个用户许可证.也就是说,只有40个用户可以使用asp.net Web应用程序.

在此先感谢

Touqeer Hameed

Hi all

Could any one help me to implement the licencing in asp.net web application.I wanna give 40 user license to my client .Means concurrenly only 40 user can use the asp.net web application.

Thanks in advance

Touqeer Hameed

推荐答案

有很多方法可以处理用户数量.

1.在配置文件中,为用户数"定义一个键,并为值"40"定义.

2.在数据库表中.创建一个表并定义键值对.

3.在注册表中还可以定义键值对.

每次用户尝试登录您的应用程序时,您都需要检查用户数,如果它小于40,则需要增加该数字并保存/更新应用程序变量.如果大于40,则可以限制用户登录应用程序.
There are many ways to handle number of users.

1. In configuration file, define a key for "Number of User" and value "40".

2. In database table. Create one table and define key-value pair.

3. In registry also can define key-value pair.

Every time when user will try to get log-in in your application you need to check user count and if it is <40 then you need to increase that number and save/update in application variable. if it is >40 then you can restrict user to log-in in the application


只需在页面上实施身份验证即可.如果此用户组从未更改(或不经常更改),我会考虑在Web服务器上创建一个组,在框中为这些用户提供一个帐户,然后将其放入允许访问Web应用程序的组中.这样,我们的应用程序可以要求他们登录并使用Windows身份验证来允许/禁止访问.

如果那不合适(您希望人们能够注册",那么您必须查找/编写一个模块来处理该问题.)
Just implement authentication on the page. If this group of users never changes (or infrequently changes) I would consider creating a group on the web server, give those users an account on the box, and put them into the group that is allowed to access the web app. That way, the we app can ask them to log in and use Windows authentication to allow/disallow access.

If that''s not appropriate (you want people to be able to "register", then you have to find/write a module to handle that.


这篇关于在asp.net中实现许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆