窗口应用程序中的会话退出功能 [英] session out functionality in window applications

查看:86
本文介绍了窗口应用程序中的会话退出功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在3.5中有一个窗口应用程序,我想在其中添加会话输出功能
给我任何建议.感觉.整个应用程序运行时可以视为一个会话.

如果您的想法不同,请解释.但是请告诉我们:您来自Web应用程序开发吗?

-SA


Windows应用程序中没有会话功能.如果要使用注销功能,请执行以下步骤.

1)当您点击退出按钮时,关闭当前表单(可能是MDI)
2)然后显示登录屏幕.就是这样.

this.Hide();
LoginForm f = new LoginForm();
f.Show();


不要混淆会话.会话仅是Web应用程序.

此处阅读有关会话的信息. [ 解决方案

As the concept of session, in contrast to Web applications working around the limitations of HTTP, is completely redundant, the session out functionality makes no sense. Whole application run-time can be considered as one session.

If your idea was different, please explain. But please tell us: are you coming from Web application development?

—SA


There is no session functionality in windows application. If you want to use the sign out functionality follow the below steps.

1) When you click the sign out button, close the current form(may be MDI)
2) Then show the login screen. Thats all.

this.Hide();
LoginForm f = new LoginForm();
f.Show();


Don''t get confuse with session. Session is only is web application.

Read about session
here[^].


这篇关于窗口应用程序中的会话退出功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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