如何访问同一网站中其他用户的会话数据? [英] How to Access Session data of other user in the same website ?

查看:71
本文介绍了如何访问同一网站中其他用户的会话数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以为
提供任何帮助吗?
如何访问同一网站中其他用户的会话数据?即如果有2个用户登录(用户1和用户2),如何在用户1的会话中访问用户2的会话.
希望得到任何帮助..在此先感谢

can any one help for

How to Access Session data of other users in the same website? i.e. if there are 2 users logged-in (User1 and User2), How can I access session of User2 within session of User1.??

any help is appriciated.. thanks in advance

推荐答案

这被称为会话窃取...和黑客攻击的一种形式...

用谷歌搜索这些关键字...
this is called session stealing... and a form of hacking...

do google for these keywords...


您试图实现的目标是错误和不道德的.您正在会话中存储用户的详细信息,因为它是特定于用户的.

如果您想将一个用户的详细信息与其他用户一起使用,则可以将其存储在数据库中,然后再使用它(我不知道这是多少人员详细信息:)).

您在解决方案1中的评论.
What you are trying to achieve is wrong and unethical. You are storing details of Users in Session because it is User specific.

In case if you want to use details of one user with other users then you may store it in database and then use it(I do not know how much personnel details it is :) ).

Your comments in Solution 1.
报价:

在"OutProc"中怎么可能?

how is that possible in "OutProc"?


我怀疑 InProc OutProc 任何会话模式都可以为您提供帮助.请查看下面的" ASP.NET会话状态概述"链接.

http://msdn.microsoft.com/en-us/library/ms178581.aspx


I doubt InProc or OutProc any Session mode can help you for this. Have a look at below link for "ASP.NET Session State Overview".

http://msdn.microsoft.com/en-us/library/ms178581.aspx


这篇关于如何访问同一网站中其他用户的会话数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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