帮我开发一个安全的WinForm应用程序 [英] Help me to develop a security WinForm application

查看:79
本文介绍了帮我开发一个安全的WinForm应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个C#winform应用程序,该应用程序跟踪有关我的应用程序的使用信息.我要求用户必须登录才能使用我的应用程序,并且仅允许一个用户在一台计算机上使用.如果该用户登录另一台计算机,我可以识别出此身份.因此,我在数据库中记录了该用户的登录时间和注销时间.但是,用户可以通过非常规方式退出我的应用程序,例如使用任务管理器杀死我的应用程序.因此,我无法记录该用户的注销时间.我需要一种解决方案,以便一个用户只能登录一台计算机.

我还希望一些书名来学习如何保护应用程序的安全.

谢谢. ="h2_lin">解决方案

您好,Quang
我的想法是让客户端每隔一段时间发送一条消息,告诉服务器它现在在线.并且服务器保留当前的在线客户端列表.服务器每隔一段时间就会遍历该列表,并删除已过期的客户端状态.
感谢
Chao


I am developing a C# winform application, which tracking the usage information about my application. I require user must be login to use my application and one user only allowed to use on one computer. If this user login on another computer, I can identify this. So I record the login time, logout time of this user in my database. However, user can exit my application in the non-regular ways such as using Task Manager to kill my application. So, I can't record the logout time of this user. I need a solution so that  one user can login only one computer.

And I also want some book titles to learn how to secure the application.

Thanks.

解决方案

Hello, Quang
My idea is to let the clients send a message every interval time to tell the server that it is online now. And the server maitains a list of the current online clients. The server travers the list every interval time and remove the client status which is expired.
Thanks
Chao


这篇关于帮我开发一个安全的WinForm应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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