多用户环境问题 [英] Multiuser enviornment problems

查看:107
本文介绍了多用户环境问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发动态多用户Web站点时,我们需要记住哪些事情.

编辑-OP的注释从解决方案"部分移至问题"部分.

但是我想知道,当两个用户同时访问我的网站时,我的网站的行为如何.

解决方案

基本上,这是开发包含许多用户的网站的大问题. .

如何处理用户以及拥有哪种类型的用户取决于您的要求.



对于您的基本信息,您需要创建一些用户组,例如admin,normal,guest等...
像这样...

然后管理员1
正常则2
来宾然后3

并将适当的组索引存储到您的数据库中. 并且在您创建用户时或当时有任何好友唱歌时,您需要将该用户放入适当的组中..

并且在您的网站中,您需要检查用户登录时的用户组类型,并且根据用户组的访问级别,您需要隐藏/显示该用户的任何信息...

这样,您就不得不对许多事情进行保养.这只是您需要提及的所有要求,并且可以满足您的用户的所有需求.两个用户.

如果您要使用一些特定于用户的详细信息,请使用"会话".

请查看下面的链接,以获取有关" Asp.Net会话"的更多信息.
http://msdn.microsoft.com/en-us/library/ms178581.aspx


感谢raiskazi的建议,您真的非常有帮助


What are the things that we have to remember while developing a dynamic multiuser web sit.

Edit - OP''s comments moved from Solution section to Question Section.

But I want to know,how my website behave when two user concurrently access my website.

解决方案

Basically this is the big issue for developing the website containing many users...

It''s Depend on your requirement that how to handel users and also which type of users you have..



For your basic information you need to create some group of users like admin,normal,guest etc...
like this...

Admin then 1
normal then 2
guest then 3

and store proper group index to your db..
and while you create a user or when any buddy sing up at that time you need to put that user in proper group..

and in your website you need to check that user group type while he she login and as per that you need to hide/show any information from that user based on their access level of group...

in this way you have to tack care for many things. this is only one you need to mention your all requirement and as per that you can handle your user...


If your Website is working normal for single user then it will also work normal for Two Users.

In case you are working with some User specific Details, then use "Session".

Have a look at below link for more information on "Asp.Net Session".
http://msdn.microsoft.com/en-us/library/ms178581.aspx


thanks raiskazi for your suggestion,you are really very helpful


这篇关于多用户环境问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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