如何进行网上注册/登录系统? [英] How to make online registration/login system?

查看:74
本文介绍了如何进行网上注册/登录系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我愿意做一个在线注册/登录系统.我在线上的意思是:首先,我是通过My.Settings选项实现的.第二,例如,我希望有一个标签,该标签应显示用户名(My.Settings.Username),因此易于制作 通过简单的代码即可:lblUsername.text = My.Settings.Username.但是它不能在线使用,当2个用户登录时,我希望它不仅显示2个用户名,而且还显示1个用户名.

i'm willing to do an online register/login system. What i mean by online, is: First, i made it by My.Settings option. Second, i want it to be like for example there is a label this label should show the username (My.Settings.Username) so it's easy to make it by that simple code: lblUsername.text = My.Settings.Username. But it doesn't work in online, when 2 users are logged in, i wanna it to show 2 users name not only 1. If i made it by that way, i won't work.

有人知道吗?

注意:我没有测试它,所以如果它起作用了,请告诉我:)

NOTE: i didn't test it, so if it's working just tell me :)

推荐答案

通常登录一次需要密码,在这种情况下吗?如果是这样,请将此信息放入任何文件中,则需要对数据进行加密.如果没有密码,则仅输入用户名,然后考虑使用xml,其中以下示例仅是名称,但 可能还会有更多信息.它将放置在与应用程序相同的文件夹中.

Usually for a login a password is required, is that the case here? If so placing this information into any file you would want to encrypt the data. If there is not password, just a user name then consider using xml where the example below is just names but could have more information also. It would be placed say in the same folder as the app.

<?xml version="1.0" encoding="utf-8" ?>
<Users>
  <User>
    <Name>user 1</Name>
  </User>
  <User>
    <Name>user 2</Name>
  </User>
</Users>

有几种方法可以通过LINQ搜索用户,有几种方法可以通过读取xml的方法或通过数据集进行读取.

There are several ways to search for a user either through LINQ, several methods for reading via methods to read xml or via a DataSet.


这篇关于如何进行网上注册/登录系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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