在ASP.NET中使用Uploadify时无法看到任何会话值 [英] Can't see any session values when using Uploadify in ASP.NET
问题描述
我使用 Uploadify 上传在我的地盘,为了文件,使上传更加安全,我创建'在服务器端令牌(随机数)一旦页面加载,并把它放在会话和JS变量,这样,当我开始上传我送同样的道理回服务器上的文件。结果
问题是发送时回来我跟踪的code和所有失去了会话值,看起来像它的另一个会话。结果
这怎么发生,我怎么能解决?结果
下面是ASP.NET伪code:
I'm using Uploadify to upload files in my site and in order to make upload more secure I create 'token' (random number) in server side once the page loaded and put it in Session and in JS variable so that when I start upload files I send the same token back to server.
The problem is when sending it back I traced the code and the session values all lost, looks like its another session.
How is that happening and how can I fix it?
Here's a pseudo code in ASP.NET:
服务器端
var token = getRandomNumber();
Session["myToken"] = token;
Response.write("<script> var tokenInJS = "+token+"</script>");
感谢名单
推荐答案
你读过的这帖子在Uploadify的有关在Flash中的错误手册中prevents它可以发布一个会话变量。
Have you read this post in Uploadify's manual about a bug in flash that prevents it from posting a session variable.
这篇关于在ASP.NET中使用Uploadify时无法看到任何会话值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!