如何在asp.net中提供访问限制 [英] How to give access limit in asp.net

查看:82
本文介绍了如何在asp.net中提供访问限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在根据客户提供的访问限制来开发工作门户.

例如X需要5次访问其公司的权限,并且

Y仅需要对其公司有2个访问限制.

I am developing a job portal according to the clients i have provide access limit to the job portal.

for example X needs 5 access limit to his company and

Y needs only 2 access limit to his company.

推荐答案

可以使用多种方法来处理/实现它.让我分享一种方式:
您设计的数据库可以跟踪与公司绑定的userId的数量.
There can be various ways to handle/implement it. Let me share one of the ways:
Your database designed such that number of userId''s tied to a company can be tracked.
MstClients
ClientID ClientName AccessLimit

TrnClients
ID ClientID UserName


现在,这两个表始终可以跟踪每个客户端允许的用户名数量.

此外,您需要实现一次登录的逻辑,以避免多次使用同一登录名(如果您愿意!)

试试吧!


Now, these two tables at all time can track number of usernames allowed per client.

Additionally, you need to implement logic of having a single sign-on to avoid multiple use of the same login (if you want to!)

Try!


这篇关于如何在asp.net中提供访问限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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