从浏览器会话,在外部应用程序可读 [英] Session from browser, readable in external application

查看:185
本文介绍了从浏览器会话,在外部应用程序可读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以读出从浏览器会话变量在一些外部程序?

Is it possible to read out the session variable from your browser in some external program?

我的意思是下面的。

我写一个应用程序(C#,WPF /的WinForms)。并宣读了我的浏览器会话,我有会话变量的名称。所以,我可以调用特定的会话变量本身。

I write a application ( c# , WPF/Winforms ). And read out the session from my browser, i have the name of the session variable. So i can call the specific session variable itself.

这可能吗?我不觉得这个话题在互联网上非常多。

Is this possible? I don't find very much on the internet about this topic.

推荐答案

这可以从浏览器中得到的唯一信息是存储在cookie中的会话ID。

The only information that you can get from the browser is the session id that is stored in a cookie.

您甚至不需要为一个外部程序,在Firefox例如:工具>选项​​>隐私>除去个别饼干,也可以查看存储在浏览器和所有Cookie的值。

You don't even need an external program for that, in Firefox for example: Tools > Options > Privacy > remove individual cookies, there you can view all cookies stored in the browser and their values.

会话对象和它的变量是不是可以从浏览器,它永远不会离开服务器。只有这样,才能摆脱会话对象的信息将是Web应用程序读取出来,并将其发送到浏览器作为响应的一部分。

The Session object and its variables is not available from the browser, it never leaves the server. The only way to get information out of the Session object would be for the web application to read it out and send it to the browser as part of a response.

这篇关于从浏览器会话,在外部应用程序可读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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