实现一个"记住我"复选框中的Windows应用程序? [英] Implement a "Remember me" CheckBox in windows application?
问题描述
您好我创建一个Windows应用程序(WPF),是要运行在几站访问1个数据库。
Hello I am creating a Windows application (WPF) that is going to be running in few stations accessing 1 database.
我已经实现了一个登录表单一个登录系统通 My.User.CurrentPrincipal
。
现在,我想实现一个记住我这台电脑上的登录表单复选框,我应该在哪里存放的价值?
I already implemented a login form with a login system thru My.User.CurrentPrincipal
.
Now, I want to implement a "Remember me on this computer" check box in the login form, where should I store the value?
这应该是一个饼干吗?一个.settings价值?或者你有什么好等的建议。
Should it be a cookie? a .settings value? or what good other suggestion do you have.
更新
还什么数据(也就是什么样的价值)我768,16存储,我希望它是安全的,用户不应该能够复制的值等。
Update
Also what data (i.e. what value) shoud I store, I want it to be secure, that users should not be able to copy the values etc.
在此先感谢!
推荐答案
我想你可能会想存储在注册表中,我不觉得你有饼干桌面应用程序。
I think you would probably want to store in the registry and i dont think u have cookies in desktop apps.
这篇关于实现一个"记住我"复选框中的Windows应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!