从 ASP.Net 中的 sessionID 获取会话对象
是否有办法从 sessionID
获取会话对象?
我有一个小项目,使用Flash上传让用户将文件上传到服务器,但问题是Flash在发送会话和cookie时出现一些错误(在Firefox或Chrome中,但不是IE),所以我找到了一个解决此问题的解决方案:通过Flash将sessionID
发送到服务器,并在服务器上将sessionID
解码回会话对象,但我不知道该怎么做它。我正在使用 ASP.NET 和 C#。
谁能建议我该怎么做?
Is there anyway to get a session object from a sessionID
?
I have a small project using a Flash upload to let a user upload their file to the server, but the problem is that Flash has some error when sending the session and cookie (in Firefox or Chrome, but not IE), so I found a solution to fix this problem: sending the sessionID
through Flash to the server, and on the server, decode sessionID
back to the session object, but I don't how to do it. I'm using ASP.NET and C#.
Can anyone advise me on what to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Moo-Juice 提出的链接不再有效。
我使用了此页面中提供的代码:
http://snipplr.com/view/15180/
就像魅力一样。
如果链接损坏,代码如下:
The link proposed by Moo-Juice is no longer working.
I used the code provided in this page:
http://snipplr.com/view/15180/
It worked like a charm.
If the link would become broken, here is the code: